CamView for Wheesy and Jessie

More
10 years 7 months ago #72514 by newbynobi
@Bogie,

yes, I made a branch called gladevCP_camview on git, showing how that works.
But before trying, lets solve some issues.

You mentioned 2 cams, a logitech and a trust spacecam.

Do both work?
What is the lowest timer you can set, without getting the mentioned errors.

I need this infos, to decide if the timer is needed or not. If it is needed, we will need a control on the screen, to allow the user to change that values, etc.

Including a focus control is posssible, if your camera do support such one.
Please open the camera settings and look for the focus control checkbox. If it is there, uncheck it, press refresh and use the slider to control the focus.

Norbert

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

More
10 years 6 months ago #72602 by bogie6040
Norbert,

Sorry for the long delay.... The spacecam worked with the original script (on a different computer) and the logitech works on my milling machine cpu with the following results:
It fails when line 310 is set to time.sleep(0.01)
It works when line 310 is set to time.sleep(0.011) FPS is ~ 14
I don't know how far down in time granularity you're looking to go, I can test further if you like.
In any case I always get the "VIDIOC_QUERYMENU: Invalid argument" multiple times before the video starts when running it.

My current screen cuts off the bottom of the camera settings window, so if the focus control box is near the bottom I can't see it....
The camera opens by default to 640 x 480 is there a way to change this?

Thanks,
Bogie

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

More
10 years 6 months ago #72617 by newbynobi
Hallo Bogie,

thanks for your ongoing testing.

So the actaual camera results
Tested cams
HD WebCam from Acer Aspire E5-771G-7169 (without timer OK)
Logitech HD Pro Webcam C920 (without timer OK)
Trust spacecam 300 (without timer OK)
Logitech C270 (only with timer set to )

The Error "VIDIOC_QUERYMENU: Invalid argument" is still a mystery for me, as both cams I tested do work fine.

On stand alone setting the cam resolution is easy.
Go to the end of the file and check for the line:
Code:
camv = CamView(videodevice=0, frame_width=640, frame_height=480)

just change width and high values to fit your needs.

If you do use it embedded, just change the values on the property part of the corresponding glade file.

Could you please let me know something about the hardware of both tested computers?

I tested my cams on
ACER Laptop I7 8GB Ram running Jessie /Linuxcnc 2.7 and master
AMD X2-6400 on ABUS Mainboard with 4GB Ram running Wheesy /Linuxcnc 2.7
AMD X2-4800 with MSI Mainboard 16 GB Ram running Jessie without Linuxcnc bit proprietary NVidia driver

I may test also on my lathe machine controler Cerleron 2 GB Ram running Linuxcnc 2.3 B)
Because of continuous work on gmoccapy and GladeVCP Widgets I am not able to update that machine :whistle:

Norbert

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

More
10 years 6 months ago #72869 by bogie6040
Norbert,

The machine at work I'm using with the trust spacecam 300 is an
HP Compaq dx2400 Microtower Intel Celeron 440 @ 2Ghz with 1GB of ram
Debian Wheezy 2.7.4 and 2.8.0-pre1-1558-gedlbbf8 - I have not tried to integrate into a tab.....

Jake

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

More
10 years 5 months ago #74686 by john@jstockton.com
Newbie question - Norbert - I downloaded your camview.py code and can run it in stand-alone mode successfully (with the slower frame rate as the higher rate crashed). I want to embed your module into a Camera tab in the regular Axis interface. I can see how people have embedded mplayer to make it work, but my experimenting always brings up your code as a separate window, rather than an embedded window. Got any hints? I know this isn't how you planned on the code being used, but it would be very helpful for us Axis users.

Thanks in advance and great job with the code,

John

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

More
10 years 5 months ago #74744 by Wirewrap
How do I find the widget and how do I embed it?

I have built the branch mentioned below.

>> You find the branch with an GladeVCP widget to be embedded very easy on
>> GladeVCP CamView

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

Moderators: HansU
Time to create page: 0.204 seconds
Powered by Kunena Forum