Я ожидаю, что окна OpenCV будут правильно отображаться вместе с моим приложением PyQt5, но вместо этого:
- С opencv-python: инициализация плагина платформы Qt "xcb" завершается неудачно.
- С opencv-python-headless: приложение запускается, но cv2.imshow() не отображает окон.
- С opencv-python:
Код: Выделить всё
QObject::moveToThread: Current thread (0x37cc2f70) is not the object's thread (0x37a70930).
Cannot move to target thread (0x37cc2f70)
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/jahid/airsim_env/airsim_env/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized.
Available platform plugins: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.
Aborted (core dumped)
- С opencv-python-headless:
Подробнее здесь: https://stackoverflow.com/questions/798 ... w-not-work
Мобильная версия