Skip to content

issue with imwrite #40

@timothyafolami

Description

@timothyafolami

File "c:\Users\Timmy\Documents\game repo\Game-Bot\create_dataset.py", line 47, in on_click
save_event_mouse(data_path, x, y)
File "c:\Users\Timmy\Documents\game repo\Game-Bot\create_dataset.py", line 38, in save_event_mouse
save_img(data_path, screenshot)
File "c:\Users\Timmy\Documents\game repo\Game-Bot\get_dataset.py", line 18, in save_img
imwrite(path, img)
cv2.error: OpenCV(4.7.0) 👎 error: (-5:Bad argument) in function 'imwrite'

Overload resolution failed:

  • Can't convert object to 'str' for 'filename'
  • Can't convert object to 'str' for 'filename'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions