I use raspberry pi 4b bookworm. python 3.11.2. I also use Raspberry Connect to connet to the raspberry pi. https://www.raspberrypi.com/software/connect/
I manaed to install open cv and I ran the code just fine:However, when I try to run the code it gives me the error:Here is the error:
I manaed to install open cv and I ran the code just fine:
Code:
import cv2 import numpy as np import timeimg = cv2.imread("monarch.jpg") print (img.size)print (img.shape)
Code:
cv2.imshow("Catepillar",img) time.sleep(3)cv2.destroyAllWindows()
QSocketNotifier: Can only be used with threads started with QThread
QStandardPaths: wrong permissions on runtime directory /run/user/1000, 0770 instead of 0700
Statistics: Posted by ricky2777 — Fri Jan 31, 2025 10:12 pm — Replies 0 — Views 29