This is the fifth part in a multiple part series on adding some object detection to my Raspberry Pi.
In this section I will cover getting your camera all set up and running. I will be following this guide.
After connecting the cable I had to go into the ‘Preferences’ and then ‘Raspberry Pi Configuration’ menu. At that point, go to the ‘Interfaces’ tab and make sure ‘Camera’ is Enabled.
After a reboot, I was able to use the command lines
raspivid to take pictures/videos of my daughter I knew everything was hooked up right.
Testing the code in Python is as simple as importing the camera using
from picamera import PiCamera. Using that we can call
.stop_preview(). One thing to note is that since I am on VNC I won’t actually see the preview. But, I am still able to call
camera.capture to validate that I can save an image.
Well, that is another short post about getting everything ready. I am sure I will have more changes once I get the model picked out and see what I need to change in order to feed in the input.