• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomepcDuinoCameraRun SimpleCV on pcDuino
Previous Next

Run SimpleCV on pcDuino

Posted by: Alvin Jin , March 9, 2014

[vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Update Kernel” tab_id=”1394412810-1-21″][vc_column_text]1.Unzip the download files

tar -zxvf uImage_20130316.tar.gz

2.Update kernel

sudo mount /dev/nanda /boot 

sudo cp uImage /boot/ -f

3. Install guvcview and reboot

sudo apt-get install guvcview

sudo reboot

In addition to the above method, in fact, you can upgrade the latest ubuntu system. Download here: http://www.pcduino.com/?page_id=14
This system comes with a USB drive.  You only need to perform Step 3.
4. Reboot and then input the command

guvcview

Now you can see the pictures[/vc_column_text][/vc_tab][vc_tab title=”Install SimpleCV” tab_id=”1394412810-2-17″][vc_column_text]1. Install SimpleCV

sudo apt-get install ipython python-opencv python-scipy python-numpy python-setuptools python-pip
sudo pip install https://github.com/ingenuitas/SimpleCV/zipball/master
sudo apt-get install python-pygame
sudo apt-get install python-imaging

2. After installed, input simplecv into shell to programing.

ubuntu@ubuntu:~$ simplecv

+-----------------------------------------------------------+
SimpleCV 1.3.0 [interactive shell] - http://simplecv.org
+-----------------------------------------------------------+

Commands: 
"exit()" or press "Ctrl+ D" to exit the shell
"clear" to clear the shell screen
"tutorial" to begin the SimpleCV interactive tutorial
"example" gives a list of examples you can run
"forums" will launch a web browser for the help forums
"walkthrough" will launch a web browser with a walkthrough

Usage:
dot complete works to show library
for example: Image().save("/tmp/test.jpg") will dot complete
just by touching TAB after typing Image().

Documentation:
help(Image), ?Image, Image?, or Image()? all do the same
"docs" will launch webbrowser showing documentation

SimpleCV:1> cam=Camera()
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument

SimpleCV:2> img=cam.getImage()

SimpleCV:3> img.show()
SimpleCV:5:
Renderings
photo.jpg

[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][vc_column_text]Before beginning, we need a USB camera, also kernel patches and USB camera driver are needed.

We can download the patches here:

https://s3.amazonaws.com/pcduino/Images/Ubuntu+Updates/uImage_20130316.tar.gz[/vc_column_text][/vc_column][/vc_row]

Tags: Linux Applications

Share!
Tweet

Alvin Jin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors