Skip to content

WARNING Environment does not support cv2.imshow() or PIL Image.show() #9844

@aleksandr-sokolov

Description

@aleksandr-sokolov

Search before asking

Question

When trying to run the "python detect.py --source 0" script I get WARNING Environment does not support cv2.imshow() or PIL Image.show(). The script runs, but I don't get a window with a view of the real time object detection work.

Has anyone experienced this and what solutions could you advise me on?

My environment:

  • YOLOv5 torch-1.12.1+cu116 CUDA:0 (GeForce GTX 1050, 4096MiB)
  • Python-3.10.8
  • OS: Windows 10

screenshot

Thank you in advance

Alex

Additional

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions