-
Notifications
You must be signed in to change notification settings - Fork 172
Plugins
Moe edited this page Feb 5, 2017
·
26 revisions
- Shinobi must be able to run if the plugin is not present.
- Exceptions will only be made if the plugin is better off as a feature.
- Required dependencies must have an installation process included
- Plugin must be a separate process (a daemon)
- Plugin interfaces with
camera.js
throughsocket.io-client
. - OpenCV plugin can be reviewed as an example.
- Instructions must be provided for simple installation and usage.
- Options for plugin must be hidden unless plugin is connected to
camera.js
.
- Locate the plugin and install its required dependencies.
- In this case it is
OpenCV 2.4.9
and the npm calledopencv
. - OpenCV 2.4.9 can be installed with
install_opencv_2.4.sh
-
sudo npm install opencv
as regular user to install the node.js npm for opencv.
- Run the plugin after
camera.js
is running.
pm2 start plugins/opencv/shinobi-opencv.js
- You should see
OpenCV Connected
inside the orange Detector box. More options should also have appeared.