April 7, 2024, 09:03
history` to see what command you have used so far.
sudo apt update/upgrade/installor
sudo apt-get update/upgrade/install.And since the libjasper-dev package is optional according to OpenCV, try it without. https://docs.opencv.org/3.4/d7/d9f/tutorial_linux_install.html
import cv2 img=cv2.imread ("lkma.jpg") cv2.namedWindow('image',cv2.WINDOW_NORMAL) cv2.imshow('image',img) cv2.waitKey(0) cv2.destroyAllWindows()
(env) lkma@raspberrypi:~/project $ python3 test_opencv.py qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "/home/lkma/project/env/lib/python3.11/site-packages/cv2/qt/plugins"
sudo raspi-configAdvanced options If this does not work and there is no other solution, the only option is to install Bullseye... By the way, get used to it, in IT everything rarely works immediately and without problems.