CamView for Wheesy and Jessie

More
07 Dec 2018 12:09 #122001 by Nitram
Hallo Norbert.

Ich war in Australien geboren aber meine Eltern haben Deutsch zu Hause gesprochen :)
Vielen dank fuer Ihre hilfe.

I do not see a "camview" button in the camera tab of Gmoccapy. I currently have the ini file tab location set to "ntb_preview". Maybe I need a bigger view??
Sometimes when I expand Gmoccapy to full screen, I see the "ghosting" of some buttons beneath, but nothing really to act upon, hence I don't know of the "camview" button.

I was also using the camera tab today and while some people are talking of a slow frame rate, I see something slightly different... I see intermittent capture rate, so in other words, for about 4 seconds the refresh rate is OK, then for 2 seconds I see the frame freeze, then for the next 4 seconds it refreshes OK again etc. I feel this is different behavior from simply a slow frame rate but rather something coming to a limit, then clearing a buffer, then back to a limit again, in a 4/2/4/2/4/2 second cycle. If you were not watching closely it could be confused for a slow frame rate, but I think it is something different.

I wonder if you have any thoughts on both of the above issues?

Nochmal vielen dank!
Chuess,
Marty.

Please Log in or Create an account to join the conversation.

More
10 Dec 2018 04:34 - 10 Dec 2018 12:40 #122128 by Nitram
I have noticed another interesting behavior.
After Gmoccapy is opened but before the machine is out of E-Stop, the camera under the camera tab runs seamlessly. Good refresh rate, no lagging.
As soon as the machine is taken out of E-Stop, when I go back to the camera tab, the picture is slow and laggy. I hope this information helps. Of note (possibly?), I am also running Any Pugh's Lathe macros (which I believe is also via gvp and py??), could there be a conflict?

Norbert, I have also tried your modification as below, and it works, but the behavior as specified above is still there with in and out of E-Stop lag/refresh.

If you have installed all dependencies as mentioned in previous post, you just will need to add to your INI File:
EMBED_TAB_NAME = Camera
EMBED_TAB_LOCATION = ntb_user_tabs
EMBED_TAB_COMMAND = gladevcp -x {XID} -c emb_cam -H emb_cam.hal -u emb_cam.py emb_cam.glade

and copy the following files to your config dir:
emb_cam.hal
emb_cam.py
emb_cam.glade



BUT, given the above, I wonder if that is slowing my system down overall, so, I wonder if someone could tell me how to disable the cam portion please? Is there a way of commenting out a line or some other action etc. which will prevent this from loading and potentially slowing down the machine but still allowing me to un-comment the line etc and try other options or cameras with linuxcnc?

Thanks,
Marty.
Last edit: 10 Dec 2018 12:40 by Nitram.

Please Log in or Create an account to join the conversation.

More
13 Dec 2018 03:18 #122346 by bogie6040
Marty,

The default comment character in the .ini file is # (hash character).
Place one at the beginning of a line and it will treat that entire line as a comment.
As to your video lag issue, it sounds like maybe a latency issue (ie: the RT kernel is busy keeping up with servicing LCNC's house keeping requests and then finally getting around to the less important non real time threads)
see: http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Latency-Test

Bogie

Please Log in or Create an account to join the conversation.

More
08 May 2019 22:08 #133202 by paulctan

Is there any advantage to doing this vs just embedding mplayer as below? At least I don't have to install OpenCV and mplayer is already in the distro.

Just wondering what I could gain (or not) by switching over.

EMBED_TAB_NAME = Camera
EMBED_TAB_LOCATION = ntb_preview
EMBED_TAB_COMMAND = mplayer -wid {XID} tv:// -vf rectangle=-1:2:-1:240,rectangle=2:-1:320:-1

Please Log in or Create an account to join the conversation.

More
30 Aug 2019 20:13 - 02 Sep 2019 06:40 #143691 by FedX
Replied by FedX on topic CamView for Wheesy and Jessie
Hi
,i tried to install CamPy on Debian Stretch.. But when i try to run CamPY_setup.py i get an error called "Traceback (most recent call last):
File "CamPY_setup.py", line 23, in <module>
import apt
ImportError: No module named apt"
is it possible to use campy or camview with stretch?

Sorry for that. i just had to insall python-apt package.. but thats not part of the install readme :whistle:

But i still have a question. The readme file says that camview.py has some codes for for moving the spindle with camera offset. How do i activate those buttons?
Does anybody added buttons in camview to move to the spindle position and a button for setting XY zero?
Last edit: 02 Sep 2019 06:40 by FedX.

Please Log in or Create an account to join the conversation.

More
02 Sep 2019 17:04 #143905 by FedX
Replied by FedX on topic CamView for Wheesy and Jessie
Linux is driving me crazy.. i've installed the latest version of wheezy and linuxcnc 2.9. I installed campy step by step and when i open python camview.py in the terminal evereything works fine.

But when i embed it in axis i only have the tab "camera" but no picture. Then i tried to use it in gmoccapy. But gmoccapy doesn't start anymore, i always get an error:
Debug file information:
.
Traceback (most recent call last):
  File "/usr/bin/gmoccapy", line 35, in <module>
    import gladevcp.makepins   # needed for the dialog"s calculator widget
  File "/usr/lib/pymodules/python2.7/gladevcp/__init__.py", line 1, in <module>
    from hal_pythonplugin import *
  File "/usr/lib/pymodules/python2.7/gladevcp/hal_pythonplugin.py", line 1, in <module>
    from camview import CamView
ImportError: No module named camview
link (updating variable file): Datei oder Verzeichnis nicht gefunden
10967
11024
Stopping realtime threads

So i think something went really wrong with the installatrion of camview because i can't use gmoccapy anymore even if i dont embed the campy panel

Please Log in or Create an account to join the conversation.

More
02 Sep 2019 17:29 #143907 by Gene1934
I've a faint resemblance. And I've come to the conclusion campy isn't ready for prime time.

I use axis, and I can get it to work until the axis window has been pulled out to expand the cameras native format just to fill the camera (backplot) window. one pixel or one line over the size of the viewport, isn't fussy, the camera shuts down and will not show a pix until the machine has been rebooted.

Wash, rinse, repeat. Two different cameras.

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page < geneslinuxbox.net:6309/gene >

Please Log in or Create an account to join the conversation.

More
02 Sep 2019 17:32 #143910 by FedX
Replied by FedX on topic CamView for Wheesy and Jessie
I had this problem with another camera. Try to set <property name="autosize">true</property> in the camview.glade file that helps. Camview was running for me until i re installed linux..

Please Log in or Create an account to join the conversation.

More
02 Sep 2019 17:46 #143913 by andypugh

FedX wrote: [dode]from camview import CamView
ImportError: No module named camview[/code]


It seems that you might have installed CamPy, but not camview.

I have found CamPy, but where did you find camview?

Please Log in or Create an account to join the conversation.

More
02 Sep 2019 17:51 - 02 Sep 2019 17:53 #143914 by FedX
Replied by FedX on topic CamView for Wheesy and Jessie
well you're right i din't installed camview. I installed the campy module on page 2 of this thread from Bogie. Thats exactly what i did the last time. I think its just called CamPy but is a updated camview to run under wheezy

Axis starts up but i get the same error message in the terminal "from camview import CamView
ImportError: No module named camview"
Last edit: 02 Sep 2019 17:53 by FedX.

Please Log in or Create an account to join the conversation.

Moderators: mhaberler
Time to create page: 0.153 seconds
Powered by Kunena Forum