Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated a fix for xcb issue. #54

Closed
wants to merge 1 commit into from
Closed

Conversation

kxing28
Copy link
Collaborator

@kxing28 kxing28 commented Mar 25, 2024

hardcode data_collection_backend.py to use the correct xcb file

Issue arises from pyqt5 finding xcb dependency within the cv2 folder instead of its own pyqt5 folder.

My old bandaid fix involved renaming
/home/screwsorter/.local/lib/python3.9/site-packages/cv2/qt/plugins/platforms to platforms_old

But that prevented usage of cv.imshow(). This new fix means we can use both cv2.imshow() and our pyqt5 application GUI.

https://stackoverflow.com/questions/68417682/qt-and-opencv-app-not-working-in-virtual-environment opencv/opencv-python#736

hardcode data_collection_backend.py to use the correct xcb file

Issue arises from pyqt5 finding xcb dependency within the cv2 folder
instead of its own pyqt5 folder.

My old bandaid fix involved renaming
/home/screwsorter/.local/lib/python3.9/site-packages/cv2/qt/plugins/platforms
to platforms_old

But that prevented usage of cv.imshow(). This new fix means we can use
both cv2.imshow() and our pyqt5 application GUI.

https://stackoverflow.com/questions/68417682/qt-and-opencv-app-not-working-in-virtual-environment
opencv/opencv-python#736
@kxing28
Copy link
Collaborator Author

kxing28 commented Mar 27, 2024

merged as part of #56

@kxing28 kxing28 closed this Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant