Getting The Raspberry pi Camera and SimpleCV working on Raspberry pi

Here is how you will have to install the Raspberry pi Camera and SimpleCV to your raspberry pi board

As i will be implementing SimpleCV in many of my projects. It makes more sense to make a common page for this lengthy process.

So lets begin

parts you will need for this are:

  • Raspberry pi(I’m running raspbian OS)
  • Raspberry pi camera module
  • internet connection

lets start with the  camera

Connecting The Camera module

raspberry pi camera.JPG

It is pretty straight forward to connecting the camera module to the pi. Here are the steps.

  • Lift up the camera connectors lock

raspberry pi camera lock lifted.JPG

  • Insert the camera module ribbon cable inside

raspberry pi camera cable attached

  • Push down the lock

Enabling the camera on the pi

  • Boot up the pi
  • Open up terminal software
  • In terminal type the following command sudo raspi-config

sudo raspi-config

A settings dialog box will pop up with a set of options to modify various settings for the pi

enable camera option

  • Go to the Camera setting option and enable the camera

enable camera

  • Reboot by typing sudo reboot to make the camera work

Testing the Camera module

If you are using the camera for the first time and want to test it check out the following links

SimpleCV

SimpleCV is an image processing library. It is an open source software that runs on all the major platforms and it is quite a powerful piece of image processing software. for more info regarding SimpleCV visit http://simplecv.org/ . I shall cover more of the features of SimpleCV in the upcoming projects. But first we need to install SimpleCV on the Pi

Installing SimpleCV on Raspberry pi

  • Open up the terminal software
  • Type the following command

sudo apt-get install ipython python-opencv python-scipy python-numpy python-setuptools python-pip

these were the dependencies or prerequisites for the SimpleCV library

  • Now to download SimpleCV type

sudo pip install https://github.com/sightmachine/SimpleCV/zipball/master

  • It will take some time for the software to download
  • After it is done downloading open up python and type import SimpleCV 
  • If you get no errors then you have successfully installed SimpleCV

Getting the raspberry pi camera recognised by SimpleCV software

The raspberry pi camera is not recognised by the SimpleCv module. This was the most difficult problem that i encountered. Luckily I found help online in the form of this post by Xfirm that will install a uv4l driver for the camera. Many thanks!!. just go through that link and get the camera working in SimpleCV.