WEBVTT

00:00.110 --> 00:05.540
In the next few lessons, you are going to learn how to use the Raspberry Pi camera to easily extract

00:05.540 --> 00:07.190
photos and videos.

00:07.190 --> 00:12.110
So far, using the foundation from the beginning of the course, you have learned how to work with Pi

00:12.140 --> 00:17.000
sensors, how to use the terminal, and how to send an email from your Raspberry Pi.

00:17.030 --> 00:23.000
Now, just two sections before we can start the final project, and let's continue with the Raspberry

00:23.000 --> 00:23.930
Pi camera.

00:23.960 --> 00:27.080
The camera feature of the Raspberry Pi is a great feature.

00:27.080 --> 00:31.610
With a camera, you can create smarter and more impressive applications.

00:31.610 --> 00:36.770
In this section, you will see how to set up the camera and also how to use it both from the terminal

00:36.770 --> 00:42.470
and from your Python programs, so you can get photos and videos with different configurations.

00:42.470 --> 00:47.150
This knowledge will help you a lot for the final project of this course, and will be a good foundation

00:47.150 --> 00:51.410
if you plan to build more applications using vision in the future.

00:51.410 --> 00:56.510
So in the introduction section, I gave you more details about which camera to choose, and here is

00:56.510 --> 00:59.750
a quick recap with the different camera versions you can have.

00:59.750 --> 01:04.340
So here on the left you have the standard one and on the right the newer one.

01:04.340 --> 01:07.040
So the standard one has the green background.

01:07.040 --> 01:09.290
And this is well this is the one I would recommend.

01:09.320 --> 01:11.330
This is the most common one.

01:11.360 --> 01:12.920
It just works well okay.

01:12.950 --> 01:14.210
It works well in daylight.

01:14.210 --> 01:20.080
But if you need a camera that works in low light or in the dark for a specific application, then you

01:20.080 --> 01:22.030
might consider the noir one.

01:22.060 --> 01:24.130
Okay, but only in specific cases.

01:24.130 --> 01:28.930
As a general use, I would recommend just get the standard one here with a green background.

01:28.930 --> 01:34.240
And then for each of those cameras you also have a version one, version two, and a version three.

01:34.240 --> 01:36.370
So in this case I'm going to use the version three.

01:36.370 --> 01:41.020
But basically the main difference between all those versions is going to be the resolution.

01:41.050 --> 01:41.290
Okay.

01:41.320 --> 01:46.750
The higher the version the higher the resolution plus some extra hardware features.

01:46.750 --> 01:48.910
But that's going to be the main difference.

01:48.910 --> 01:54.610
And in the end, what's important to know is that all the Raspberry Pi cameras will work the same.

01:54.610 --> 01:59.350
So when I say it will work, the same means that the way to plug them to the Raspberry Pi is the same,

01:59.350 --> 02:03.790
and then the command line tools are the same and the Python code are the same.

02:03.820 --> 02:04.030
Okay.

02:04.060 --> 02:09.550
The difference is in the hardware, it's about the resolution, about the kind of quality of the image

02:09.550 --> 02:13.270
you're going to get depending on different situations, but the way to use them is the same.

02:13.270 --> 02:16.780
So don't worry if you still have an older version of the camera, okay?

02:16.810 --> 02:21.250
Even if you upgrade it to a newer version of the Raspberry Pi, it's not going to change anything.

02:21.250 --> 02:26.800
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

02:26.800 --> 02:30.360
new one and you can't find the newest version, Don't worry about that.

02:30.360 --> 02:36.570
Now, with all that said, there is one difference here and it's going to be depending on not the camera

02:36.570 --> 02:39.090
but on the Raspberry Pi that you are using.

02:39.090 --> 02:43.830
So as you can see on the left of the screen here, the camera might come like this with this kind of

02:43.860 --> 02:44.310
cable.

02:44.310 --> 02:48.600
So that's a 15 pin cable that are separated by one millimeter.

02:48.600 --> 02:50.070
And you can see it's quite large.

02:50.070 --> 02:55.950
And this one you can directly connect to Raspberry Pi four and all the versions of the Raspberry Pi.

02:55.980 --> 02:59.280
But then for Raspberry Pi five the connector.

02:59.280 --> 03:01.740
And we're going to see that directly in the next lesson.

03:01.740 --> 03:05.550
So the camera connector on the board is not the same.

03:05.550 --> 03:08.640
If you look at it it's a bit shorter and actually it's shorter.

03:08.640 --> 03:09.480
It has more pins.

03:09.480 --> 03:13.320
It's 22 pins, but they are separated by 0.5mm.

03:13.320 --> 03:14.760
So the connector is shorter.

03:14.760 --> 03:17.220
So in this case you might need as you can see here.

03:17.220 --> 03:19.350
And I talked about it in the introduction section.

03:19.350 --> 03:20.880
You might need an extra cable.

03:20.880 --> 03:24.000
So a cable adapter and this cable is 15 pin.

03:24.000 --> 03:27.300
So for the camera to 22 pin for the Raspberry Pi.

03:27.300 --> 03:32.850
And I guess that in the future when you buy a camera or if they release a new camera version, they

03:32.850 --> 03:35.820
might ship directly to the right cable for the Raspberry Pi five.

03:35.820 --> 03:36.450
But here.

03:36.450 --> 03:37.410
And that's what I had to do.

03:37.440 --> 03:41.850
You probably need to buy an extra cable so that you can plug your camera.

03:41.880 --> 03:42.270
All right.

03:42.300 --> 03:43.770
And now let's get started.
