https://github.com/kscottz/dewarp
- SimpleCV should now be ready to install. Download SimpleCV from githuband install from the source.
sudo pip install https://github.com/sightmachine/SimpleCV/zipball/master
Alternatively, you can install SimpleCV from source.
mkdir ~/Code
cd ~/Code
git clone git://github.com/sightmachine/SimpleCV.git
cd SimpleCV
sudo pip install -r requirements.txt
sudo python setup.py develop
- After allowing those commands to run for a while (it is going to take a while, gograb a drink), SimpleCV should be all set up. Connect a compatible camera to theboard’s usb input and open up the simplecv shell
raspberry@pi:~$ simplecv
SimpleCV:1> c = 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> c.getImage()
SimpleCV:2: <SimpleCV.Image Object size:(640, 480), filename: (None), at memory location: (0x1335850)>
SimpleCV:3> exit()
安装
sudo pip install pygame
sudo pip install svgwrite
requiements.txt
numpy
scipy
PIL
ipython
svgwrite
pygame==1.9.1release
python defish.py --ifile=fish/c1.jpg -ofile=reslut33.jpg