my camera module 3 won't capture videos using opencv in python
September 30, 2024, 20:53
omar_eldeeb112233
so i'm trying to make a project where i use AI to track a laser movement and put a square around the laser,but for some reason when i start initiating the camera using this line: 'cv.VideoCapture(0)' but it always says the camera is not initialized even though it works with the rpi-hello and rpi-still command just fine and it also works if i try to record a video using libcamera functions, i tried many different ways like putting this line:'cv2.VideoCapture(0, cv2.CAP_V4L2)' instead, using GSTstreamer,and i tried using the picamera library but it always said libcamera isn't installed even though libcamera functions work just fine, and i tried uisng a usb webcam and it workded just fine but i wanna use the pi camera instead. i'm very new to raspberry but i was a previos advanced arduino engineer though, so plz help
ddkrd
I have the same issue. I'm about to lose my mind with these nonsensical and irrelevant guides online !! xD