Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4664

Troubleshooting • Troubleshooting of opencv

$
0
0
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:

Code:

import cv2 import numpy as np import timeimg = cv2.imread("monarch.jpg") print (img.size)print (img.shape)
However, when I try to run the code it gives me the error:

Code:

cv2.imshow("Catepillar",img) time.sleep(3)cv2.destroyAllWindows() 
Here is the error:
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



Viewing all articles
Browse latest Browse all 4664

Trending Articles