In the next few lessons, you are going to learn how to use the Raspberry Pi camera to easily extract
photos and videos.
So far, using the foundation from the beginning of the course, you have learned how to work with Pi
sensors, how to use the terminal, and how to send an email from your Raspberry Pi.
Now, just two sections before we can start the final project, and let's continue with the Raspberry
Pi camera.
The camera feature of the Raspberry Pi is a great feature.
With a camera, you can create smarter and more impressive applications.
In this section, you will see how to set up the camera and also how to use it both from the terminal
and from your Python programs, so you can get photos and videos with different configurations.
This knowledge will help you a lot for the final project of this course, and will be a good foundation
if you plan to build more applications using vision in the future.
So in the introduction section, I gave you more details about which camera to choose, and here is
a quick recap with the different camera versions you can have.
So here on the left you have the standard one and on the right the newer one.
So the standard one has the green background.
And this is well this is the one I would recommend.
This is the most common one.
It just works well okay.
It works well in daylight.
But if you need a camera that works in low light or in the dark for a specific application, then you
might consider the noir one.
Okay, but only in specific cases.
As a general use, I would recommend just get the standard one here with a green background.
And then for each of those cameras you also have a version one, version two, and a version three.
So in this case I'm going to use the version three.
But basically the main difference between all those versions is going to be the resolution.
Okay.
The higher the version the higher the resolution plus some extra hardware features.
But that's going to be the main difference.
And in the end, what's important to know is that all the Raspberry Pi cameras will work the same.
So when I say it will work, the same means that the way to plug them to the Raspberry Pi is the same,
and then the command line tools are the same and the Python code are the same.
Okay.
The difference is in the hardware, it's about the resolution, about the kind of quality of the image
you're going to get depending on different situations, but the way to use them is the same.
So don't worry if you still have an older version of the camera, okay?
Even if you upgrade it to a newer version of the Raspberry Pi, it's not going to change anything.
You can keep your old camera if you have an old one, and if you can't find or if you want to buy a
new one and you can't find the newest version, Don't worry about that.
Now, with all that said, there is one difference here and it's going to be depending on not the camera
but on the Raspberry Pi that you are using.
So as you can see on the left of the screen here, the camera might come like this with this kind of
cable.
So that's a 15 pin cable that are separated by one millimeter.
And you can see it's quite large.
And this one you can directly connect to Raspberry Pi four and all the versions of the Raspberry Pi.
But then for Raspberry Pi five the connector.
And we're going to see that directly in the next lesson.
So the camera connector on the board is not the same.
If you look at it it's a bit shorter and actually it's shorter.
It has more pins.
It's 22 pins, but they are separated by 0.5mm.
So the connector is shorter.
So in this case you might need as you can see here.
And I talked about it in the introduction section.
You might need an extra cable.
So a cable adapter and this cable is 15 pin.
So for the camera to 22 pin for the Raspberry Pi.
And I guess that in the future when you buy a camera or if they release a new camera version, they
might ship directly to the right cable for the Raspberry Pi five.
But here.
And that's what I had to do.
You probably need to buy an extra cable so that you can plug your camera.
All right.
And now let's get started.