PFTL / website_articles

Markdown and RST files of the articles on https://www.pythonforthelab.com
Other
2 stars 0 forks source link

blog/step-by-step-guide-to-building-a-gui/ #7

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Python for the Lab | Step by Step Guide to Building a GUI

  Using PyQt to build a GUI for your webcam

https://www.pythonforthelab.com/blog/step-by-step-guide-to-building-a-gui/

alexandre-blanc commented 2 years ago

I tried to follow along but got into an issue at section "Acquiring an image from the GUI". The problem was that open-cv comes prepackaged with its own Qt build which overrides the one installed from PyQt. If you run into a similar issue, you may need to install opencv-python-headless instead of opencv-python-contrib, as per https://forum.qt.io/topic/119109/using-pyqt5-with-opencv-python-cv2-causes-error-could-not-load-qt-platform-plugin-xcb-even-though-it-was-found/10

aquilesC commented 2 years ago

@alexandre-blanc , thanks for the suggestion! I will look into this.