Remote live-video streaming using BeagleBone Black using python

Hi,

I want to video stream with a webcam connected to BeagleBone Black utilizing python-opencv (to use it later for eye tracking) but I’m failing. I installed flask as my web-server. I do not have a remote desktop view of the BBB, i can only access it through ssh. The BBB is connected through the supplied USB cable and also made it to access Internet through the same cable.
The code i tested it with is found on ( https://github.com/log0/video_streaming_with_flask_example ) it did not work.

I thought of trying another code using the inbuilt webcam on my machine.
I tested the “Hello World” program on, http://flask.pocoo.org/ (Alterations made were to put 192.168.7.2:5000 inside the app.run() instant for me to access it remotely on a browser in the host machine).

I have also tried another video capturing program but still getting the following errors when i run the video capture code on ( http://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_gui/py_video_display/py_video_display.html ) but when i run it in my machine there is no problem.

root@beaglebone:~/Project# python video_stream.py
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

(process:6885): Gtk-WARNING **: Locale not supported by C library.
Using the fallback ‘C’ locale.

(frame:6885): Gtk-WARNING **: cannot open display:

I need your help. Thanks in advance.