I am trying to learn contours in python using cv2.
I tried the following code given in a tutorial guide:
import cv2 import numpy as np from matplotli
1st print ret. If it is showing false then your image is not taken properly. If it is showing True Try this command - sudo modprobe bcm2835-v4l2 Or in your /etc/modules file add bcm2835-v4l2 at the bottom.