Skip to content
catmaker edited this page Oct 14, 2015 · 1 revision

On Intel Edison running debian jessie, this experiment is an exercise to run an OpenCV applcation and put its output to a web browser as an MJPEG stream. Following the instructions from https://ariandy1.wordpress.com/2013/04/07/streaming-opencv-output-through-httpnetwork-with-mjpeg/

mjpg_streamer built

Using stock installation from debian-jessie, the OpenCV version is 2.4.0

apt-get install libcv-dev libopencv-photo-dev libopencv-contrib-dev

The opencv supplemental information for pkg-config and compilation for the above apt-get installation was missing, so this was corrected following instructions from http://stackoverflow.com/questions/15320267/package-opencv-was-not-found-in-the-pkg-config-search-path

git clone https://github.com/ariandyy/bgsubtract.git cd bgsubtract/ make bgsubtract2

$ ./bgsubtract2 /tmp/out.mjpg -bgs > /dev/null & $ /usr/local/bin/mjpg_streamer -i "/usr/local/lib/input_file.so -f /tmp/" -o "/usr/local/lib//output_http.so -n -p 8081 -w /usr/local/www" &

With background subtract (-bgs), the above application gives about 9 FPS. Without subtraction, about 14.8 FPS.

Clone this wiki locally