Raspberry PI - Ubuntu Mate Camera - setup

Setup the camera
First, connect the Raspberry Pi with the camera and boot it. The camera module needs these two packages:

sudo apt-get install libraspberrypi-dev
sudo pip install picamera

Then, open config.txt with sudo nano /boot/firmware/config.txt and add the lines

start_x=1
gpu_mem=128

at the end of the file. Save, then reboot the Raspberry Pi with

sudo reboot

Test the installation
Open Python and enter

import picamera
camera = picamera.PiCamera()
camera.capture('image1.jpg')
camera.close()

If this produced an image named image1.jpg in the current directory, all is fine.

Comentarii

Postări populare de pe acest blog

RpiCar

DevExpress Theme Changer ...