This is an old revision of the document!
Table of Contents
Py Live Cam
Setup for a Raspberry Pi live camera with Python.
Based on the Raspbian Jessy image:
https://www.raspberrypi.org/downloads/raspbian/
For the VGA hat check the modifications here:
http://paperpcb.dernulleffekt.de/doku.php?id=raspberry_boards:raspberry_vga_board
Modifications
Remove the splash screen:
$ sudo nano /boot/cmdline.txt
delete:
splash
Enable camera:
$ sudo raspi-config
enable camera
Disable camera light:
sudo nano /boot/config.txt
add:
disable_camera_led=1
Install some software:
$ sudo apt-get install git htop cmake
Install Python Modules
$ sudo apt-get update
Install the Pip for Python 2.7.
$ sudo apt-get install python-pip
Install python pi cam:
$ sudo apt-get install python-picamera
Install python omxplayer:* $ sudo wget https://github.com/dernulleffekt/embedded-artist/archive/master.zip $ unzip master.zip $ cd embedded-artist-master/python/ $ sudo cp pyomxplayer.py /usr/local/lib/python2.7/dist-packages/ $ sudo pip install pexpect —- ==== Python Live Cam ==== Download the program:**
autostart: /etc/rc.local
shutdownbutton (pin 22): /home/pi/pictures_of_an_exhibition/shutdownbutton_02.py
camera: /home/pi/pictures_of_an_exhibition/simple_camera.py
HDMI settings
Check the current HDMI state:
$ tvservice -s
List of CEA supported modes:
$ tvservice –m CEA
List of DMT supported modes:
$ tvservice –m DMT
Choose the prefered mode, DMT work best with HDMI beamer and monitors.
CEA is hdmi_group=1
DMT is hdmi_group=2
Open config file:
$ sudo nano /boot/config.txt
change for example CEA 720p:
hdmi_group=1 hdmi_mode=4
Low level changes for DMT 640×480 60 Hz would be:
hdmi_group=2 hdmi_mode=4
All modes are on: http://elinux.org/RPiconfig