Difference between revisions of "Pi-Camera"

From Geekworm Wiki
Jump to navigation Jump to search
 
(No difference)

Latest revision as of 20:26, 16 March 2016

Use the Raspberry OS that we provide

  • On the Terminal, enter
 cd /home/pi/camera/ 
 sudo ./Camera

Wait a few seconds. The Camera APP will work.Double-click on the screen to capture images

Use at yourself Raspbian OS

  • Enable the camera driver
sudo raspi-config

Choice 'Enable Camera'-> 'Enable'

unzip camera.zip
cd camera
sudo chmod 777 Camera
sudo cp update\ camera/95-stmpe.rules /etc/udev/rules.d/
sudo nano /etc/apt/sources.list.d/wheezy.list

Add the following code to it,Then Press Ctrl+X,choose Y to save:

deb http://archive.raspbian.org/raspbian wheezy main 
sudo nano /etc/apt/apt.conf.d/10defaultRelease

Add the following code to it,Then Press Ctrl+X,choose Y to save:

APT::Default-release \"stable";
sudo nano /etc/apt/preferences.d/libsdl

Add the following code to it,Then Press Ctrl+X,choose Y to save:

Package: libsdl1.2debian
Pin: release n=jessie
Pin-Priority: -10
Package: libsdl1.2debian
Pin: release n=wheezy
Pin-Priority: 900
sudo apt-get update 
sudo apt-get install evtest tslib libts-bin xinput
sudo apt-get install python-pip 
sudo apt-get install python2.7-dev
sudo pip install picamera==0.8
  • Calibration
 sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/touchscreen ts_calibrate
  • Run Camera APP
 sudo ./Camera