You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When importing pupil_labs.realtime_api.simple or pupil_labs.real_time_screen_gaze.gaze_mapper, OpenCV's cv2.imshow() does not display the image as expected. However, when these imports are commented out, cv2.imshow() functions normally. This issue occurs without any other changes to the script.
Steps to Reproduce
Run the following minimal script:
importcv2importnumpyasnp# Uncommenting these two lines causes cv2.imshow() to stop workingfrompupil_labs.realtime_api.simpleimportdiscover_one_devicefrompupil_labs.real_time_screen_gaze.gaze_mapperimportGazeMapperblack_screen=np.ones([500,500,3])
cv2.imshow("Simple_black", black_screen)
cv2.waitKey(0)
When pupil_labs is imported, the OpenCV image window does not appear.
No error messages are displayed in the terminal.
is that GUI backend conflicts between pupil_labs and OpenCV?
Could you confirm if pupil_labs alters any OpenCV-related settings or GUI backends? If so, is there a workaround to allow OpenCV's cv2.imshow() to function normally while using pupil_labs?
Thanks!
The text was updated successfully, but these errors were encountered:
When importing
pupil_labs.realtime_api.simple
orpupil_labs.real_time_screen_gaze.gaze_mapper
, OpenCV'scv2.imshow()
does not display the image as expected. However, when these imports are commented out,cv2.imshow()
functions normally. This issue occurs without any other changes to the script.Steps to Reproduce
Run the following minimal script:
When pupil_labs is imported, the OpenCV image window does not appear.
No error messages are displayed in the terminal.
Environment:
OS: Ubuntu 22.04
Python Version: 3.10.16
Pupil Labs Package Version: 1.3.6
OpenCV Version: 4.11.0
Possible Causes
is that GUI backend conflicts between pupil_labs and OpenCV?
Could you confirm if pupil_labs alters any OpenCV-related settings or GUI backends? If so, is there a workaround to allow OpenCV's cv2.imshow() to function normally while using pupil_labs?
Thanks!
The text was updated successfully, but these errors were encountered: