/
README
133 lines (97 loc) · 3.9 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
The SimpleSeer is a way to create inspections and take measurements,
it uses the SimpleCV framework and MongoDB to turn any PC into a vision appliance.
Examples of usage:
==========================
To start SimpleSeer in continuous mode:
$ cd SimpleSeer
$ python -mPyro4.naming &
$ simpleseer broker &
$ simpleseer core &
$ simpleseer web
To start an iPython shell:
$ simpleseer shell (terminal shell)
$ simpleseer notebook (web-based notebook)
To capture an image, display, and store in the database:
>>> frames = SS.capture()
>>> frames[0].image.show()
>>> frames[0].save()
To retrieve and display all captured frames at a 1 second delay:
>>> for f in Frame.objects:
>>> f.image.show()
>>> time.sleep(1)
Installation instructions:
==========================
You must have SimpleCV installed first! http://simplecv.org
You will also need to edit (or copy and edit) default.cfg for settings
that reflect your Camera, database, and etc.
Note: You can optionally install pyfirmata to interface with an arduino
TODO: update these to include a virtualenv
Ubuntu Linux 12.04
-----------------------------------
To run the installer:
wget https://github.com/ingenuitas/SimpleSeer/zipball/master -O SimpleSeer.zip; unzip SimpleSeer.zip; mv ingenuitas-* SimpleSeer;
cd SimpleSeer
sh scripts/install.sh
or manually install with these commands from WITHIN the SimpleSeer directory:
sudo apt-get install python-dev python-setuptools python-pip libzmq-dev mongodb nodejs npm build-essential python-gevent libevent-dev supervisor ipython-notebook libvpx-dev libvpx1 swig subversion
sudo npm install -g brunch
sudo pip install -r pip.requirements
sudo easy_install coffeescript
sudo python setup.py develop
sudo mkdir /etc/simpleseer
sudo cp `pwd`/etc/mongodb.conf /etc/
sudo ln -s `pwd`/SimpleSeer/static/ /etc/simpleseer/static
sudo ln -s `pwd`/etc/supervisor.conf /etc/supervisor/conf.d/supervisor.conf
sudo ln -s `pwd`/etc/simpleseer.cfg /etc/simpleseer.cfg
sudo ln -s `pwd`/etc/simpleseer-logging.cfg /etc/simpleseer-logging.cfg
sudo killall supervisord
sudo supervisord
sudo supervisorctl start seer-dev:
*NOTE: Don't install python-pymongo from the repos as it is much too far out of date and requires 2+
Mac OS X (Using homebrew)
--------------------------------------
> brew install mongodb
> brew install zmq
> sudo easy_install pip
> sudo ARCHFLAGS="-arch i386 -arch x86_64" pip install -r pip.requirements
(i had to check out gevent-socketio from bitbucket and comment out #setup_requires line to get it working on mac)
> hg clone https://bitbucket.org/Jeffrey/gevent-socketio
> cd gevent-socketio
> perl -pi -e "s/setup_requires/#setup_requires/" setup.py
> sudo python setup.py install
> (optional) hg clone https://bitbucket.org/tino/pyfirmata && cd pyfirmata && python setup.py install
> curl http://npmjs.org/install.sh | sh
> npm install -g brunch
> npm install -g brunch-less
> python setup.py develop
> sudo python
>>> from IPython.external.mathjax import install_mathjax
>>> install_mathjax()
=======
Install Mongo 2.1
=================
Since features are used from mongo 2.1 and not included in the repos, the following
explains how to manually install it.
mkdir -p /tmp/mongo
cd /tmp/mongo
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.1.1.tgz
tar zxvf mongodb-linux-x86_64-2.1.1.tgz
cd mongodb-linux-x86_64-2.1.1
cd bin
sudo cp * /usr/local/bin/
sudo mkdir -p /var/lib/mongodb
sudo mkdir -p /var/log/mongodb
Optional Libraries
============
ZBAR
This is a simplecv optional library that performs barcode reading.
See:
http://pypi.python.org/pypi/zbar
Or:
sudo easy_install zbar
============
TESSERACT
This is a simplecv optional library that performs optical character recogntion (OCR).
Make sure to install the tesseract libraries and required python bindings
See:
http://code.google.com/p/python-tesseract/wiki/HowToCompilePythonTesseract