The Internet of Things: Do-It-Yourself at Home Projects for Arduino, Raspberry Pi and BeagleBone Black by Norris Donald

The Internet of Things: Do-It-Yourself at Home Projects for Arduino, Raspberry Pi and BeagleBone Black by Norris Donald

Author:Norris, Donald [Norris, Donald]
Language: eng
Format: azw3, epub
Publisher: McGraw-Hill Education
Published: 2015-01-26T16:00:00+00:00


Using Python with the Raspberry Pi Camera

I will use a clever Python library named python-picamera, created by Dave Jones (Github), which will permit the Pi Camera to both be operated in an interactive mode as well as programmed for specific operations. You must have Python 2.7 installed for this library to function. I believe the latest Raspian download version contains it, but if not, enter this command to install Python:

sudo apt-get install python python-dev

Once Python is ready, enter the following command to load the picamera Python library:

sudo apt-get install python-picamera

Start Python and enter the following commands to test the library and see how well it functions with the Pi camera (the arrow prompts indicate this is an interactive Python session):



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.