Skip to content

cv2.error: NULL window handler in function 'cvSetMouseCallback' #6

Description

@sangramrajekakade
python code2.py -i1 aman1.jpg -i2 aman2.jpg -i3 aman3.jpg -a True
helllooooo
<module 'cv2.cv2' from '/home/panacea/Documents/Yogeshsir/Body-Measurement-using-Computer-Vision/src/venv/lib/python3.5/site-packages/cv2/cv2.cpython-35m-x86_64-linux-gnu.so'>
Traceback (most recent call last):
  File "code2.py", line 401, in <module>
    main()
  File "code2.py", line 376, in main
    metre_pixel_x,metre_pixel_y,coordinate,affine_correct_parameters=analyze_chessboard(image,affine_correct_flag)
  File "code2.py", line 230, in analyze_chessboard
    cv2.setMouseCallback(window_name1, click_and_crop)
cv2.error: OpenCV(4.2.0) /io/opencv/modules/highgui/src/window_QT.cpp:714: error: (-27:Null pointer) NULL window handler in function 'cvSetMouseCallback'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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