Skip to content

Commit 092f390

Browse files
Update README.md
1 parent fff0e2d commit 092f390

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,27 @@ GPIO_example.py brings an example of control of the pins of the nano jetson allo
3434

3535

3636
# Image Capture
37+
## Install pip2 for python2 package installation
38+
```
39+
sudo apt update
40+
sudo apt install python-pip
41+
```
42+
## Install v4l2 package for python 2.7.17 (preinstalled in the Jetson image)
43+
44+
```
45+
pip2 install v4l2
46+
```
47+
48+
## Run script
49+
```
50+
python image_capture_example.py
51+
```
52+
3753

3854
image_capture_example.py provides an example of taking a sequence of images by changing some sensor parameters between each image. In this file you can also find functions to drive the sensor which are different from the api (less complex, address of the controls defined in static).
3955
The program will take a sequence of RAW images and customize the controls applied to each image as you wish.
4056
It is also possible to change the format to take picture in Y10 or GRAY8. Y10 images will be saved in 16bit GRAY raw image.
4157

4258
# Video display with matplolib
4359

44-
video_flux_and_capture_numpy_matplotlib.py provides an example of streaming the video flux using matplotlib, you can also see in the code how to put the images in a numpy array. This codes provides really bad streaming performances with a maxmum of 5/10 fps this is due to the usage of matplotlib, it hasn't been develop for video streaming, we are using it only to show how to use the driver with numpy.
60+
video_flux_and_capture_numpy_matplotlib.py provides an example of streaming the video flux using matplotlib, you can also see in the code how to put the images in a numpy array. This codes provides really bad streaming performances with a maxmum of 5/10 fps this is due to the usage of matplotlib, it hasn't been develop for video streaming, we are using it only to show how to use the driver with numpy.

0 commit comments

Comments
 (0)