0

Raspberry Pi Camera Board v2 vc2.VideoCapture
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Raspberry Pi Camera Board v2 vc2.VideoCapture

by steferretti on Tue Feb 12, 2019 2:11 pm

Hi, using the following code

import cv2
cap = cv2.VideoCapture(0)
print cap.isOpened()

result is False, subsequent code does not work.

raspistill -o s.jpg works fine
sudo vcgencmd get_camera: suppoerted=1 detected=1

What should I do?
Best regards

steferretti
 
Posts: 1
Joined: Tue Feb 12, 2019 1:52 pm

Please be positive and constructive with your questions and comments.