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

Camera board • Re: Issues using Raspberry Pi Camera Module 3with OpenCV Video Capture - Cannot capture the image

$
0
0
Yeah you're right, I'm using Bookworm Desktop, directly attached to mouse, keyboard, and monitor.

I tested OpenCV for opening windows by saving an existing image locally, and using imshow to show it, and the simple code actually opens the image. This code doesn't involve Picamera2, because it just showing the image, but in reality, I need Picamera2 to work with OpenCV

Here's the code for OpenCV opening windows

Code:

import cv2file_img = cv2.imread("/home/pi/test.jpg", 0)cv2.imshow("Window", file_img)cv2.waitKey(0)cv2.destroyAllWindows()

Statistics: Posted by sns123 — Tue Jun 25, 2024 1:35 pm



Viewing all articles
Browse latest Browse all 4060

Trending Articles