Sorry have been working for money
Use this to embed in gmoccapy, I have not tested with axis and will not do that either.
***************************************************************************************************
First step: Install dependencies
sudo apt-get install qv4l2
Second step: Check your camera
open a terminal
enter qv4l2 and check if your camera is recognized. (start live stream).
Third step: Install the resting dependencies
sudo apt-get install python-opencv
sudo apt-get install v4l-utils
sudo apt-get install v4l2ucp
Fourth step: Prepare your INI File
Put in your INI File in the [DISPLAY] Sektion:
EMBED_TAB_NAME = Camera
EMBED_TAB_LOCATION = ntb_preview
EMBED_TAB_COMMAND = gladevcp -x {XID} camview.glade
Fifth step: Download the attached zip file and unpack it
You will need the following files:
camview.py
camview.glade
hal_python.xml
hal_pythonplugin.py
Make a backup of your files
hal_python.xml
hal_pythonplugin.py
They are in the following directories:
/usr/lib/pymodules/python2.7/gladevcp
/usr/share/pyshared/gladevcp
copy:
camview.glade into your Config directory
gmoccapy_with_user_tabs.ini only shows the example of embedded commands, you do not need that one
copy
camview.py
hal_python.xml
hal_pythonplugin.py
to /usr/lib/pymodules/python2.7/gladevcp
and also to
/usr/share/pyshared/gladevcp
***********************************************************************************************************************
IMHO there have been added some additional widgets to the catalog, so it might be worse the work to
just add the camview lines to your original files.
I do not know why the files have to be in two directories. It is unusual for Linux.
And please; one of you should right a how to or better make a WIKI page.
It will not be easy to get this included in linuxcnc unless someone takes an effort to make it a package.
Norbert