Hello Guest it is November 18, 2019, 03:40:33 AM

Author Topic: Webcam plugin with low CPU consumption  (Read 44957 times)

0 Members and 1 Guest are viewing this topic.

Offline Greolt

*
  •  956 956
    • View Profile
Re: Webcam plugin with low CPU consumption
« Reply #20 on: April 12, 2009, 04:05:52 AM »
Unfortunately I have had to abandon this video plugin and go back to the one provided with Mach.

I really liked the small size window and especially the fine cross hair line.  Mach's is a larger window and about three pixel wide cross hair line. Too fat.

However Klaus's dominates the USB.  I jog by keyboard and Shuttle Pro and the plugin makes them both erratic and unpredictable for small movements.

I don't suppose anything can be done to fix that?

Greg
Re: Webcam plugin with low CPU consumption
« Reply #21 on: April 13, 2009, 07:26:07 AM »
Hi Greg,

a few questions:
do you have your jogging devices on the same USB-hub as the camera?
what kind of USB are using USB 1 or USB 2?
can you adjust the bandwidth for the camera? When you start settings, you probably get a dialog where you can set many parameters within the camera driver, at least  mine does.


Klaus
The brain isn't a soap, it doesn't shrink when used.

Offline RICH

*
  • *
  •  7,371 7,371
    • View Profile
Re: Webcam plugin with low CPU consumption
« Reply #22 on: April 13, 2009, 08:35:01 AM »
Hi Greg and Klaus,
I liked the plug in Klaus provided with the features provided, but,........
I found it didn't work with CopyCAT and the XBOX for reasons you have mentioned.
Maybe i was doing something wrong.
RICH

Offline Greolt

*
  •  956 956
    • View Profile
Re: Webcam plugin with low CPU consumption
« Reply #23 on: April 13, 2009, 08:24:24 PM »

do you have your jogging devices on the same USB-hub as the camera?

what kind of USB are using USB 1 or USB 2?

I have four USB 2.0 on the Motheboard and a PCI card with four USB2.0.

Keyboard, mouse, shuttle pro and USB stick when needed, on the MoB

Camera all on it's own on the PCI card

Quote
can you adjust the bandwidth for the camera? When you start settings, you probably get a dialog where you can set many parameters within the camera driver, at least  mine does.


Yes I can adjust the bandwidth on the settings, which brings up a a dialogue box that belongs to the camera driver I presume.

It was on auto (6) and I took it down to 1

If it made any difference at all, I could not tell.

Greg
Re: Webcam plugin with low CPU consumption
« Reply #24 on: April 14, 2009, 06:48:17 AM »
Hi Greg

I don't suppose the problem you are having is an USB problem. Perhaps you can give me some more details, how is the problem look like?




Klaus
The brain isn't a soap, it doesn't shrink when used.

Offline Greolt

*
  •  956 956
    • View Profile
Re: Webcam plugin with low CPU consumption
« Reply #25 on: April 14, 2009, 07:10:13 AM »
It is like the keyboard only gets to send info every half second.

If I tap an arrow key to jog, sometimes nothing happens, on release of the key jogging will sometimes continue for half a second.

This only happens when your video plugin is running.

Does not happen when the standard Mach video is running.

Greg
Re: Webcam plugin with low CPU consumption
« Reply #26 on: April 14, 2009, 09:54:21 AM »
Hi Greg,

as you can see on my homepage, I first made a standalone webcam program. The minmum framerate was 20ms. To get the same framerate with the plugin I used the windows timer. At the moment my machine isn't ready yet, so I can't test the plugin in motion. In the new version V1.07 I removed the use of the windows timer. This means, the minimum framerate is now 100ms. This is for test reasons only, I want to find out, wether I'm on the right track. It would be nice, if you'd give me a feedback.


Klaus
The brain isn't a soap, it doesn't shrink when used.

Offline Greolt

*
  •  956 956
    • View Profile
Re: Webcam plugin with low CPU consumption
« Reply #27 on: April 14, 2009, 07:33:07 PM »
Klaus

No it is still the same with the V1.07

Another clue you may be able to see without a machine is when dragging the video window by the
mouse (USB) to position it on screen the motion is visually jerky.

Not much, but noticeable compared to dragging the Mach standard video window.

If it would help I could make a small movie of the jogging with and without video plugin running.

Greg
Re: Webcam plugin with low CPU consumption
« Reply #28 on: April 15, 2009, 04:55:18 AM »
Hi Greg,

the installation routine is changed. To me, it looks like a performance problem. In version V1.08 I changed the handling mode to view the datastream.

To get the same test-conditions, you have I'd like to know:
what version of Mach3 are using
what is your processor speed
how much RAM do you have
what display adapter and how much Video-RAM are you using

Klaus
The brain isn't a soap, it doesn't shrink when used.

Offline Greolt

*
  •  956 956
    • View Profile
Re: Webcam plugin with low CPU consumption
« Reply #29 on: April 15, 2009, 06:15:22 AM »
Klaus

what version of Mach3 are using   Version R3.042.026

what is your processor speed   Core2 CPU 6400 @ 2.13GHz

how much RAM do you have   1GB ram

what display adapter and how much Video-RAM are you using  NVIDIA GeForce 7300 GS    512MB Ram

Tried V 1.08 and it is the same but I think I am getting used to it.  :)   It is hard to quantify or explain the effect.

The best way to see it is drag the video widow around the screen and see the jerkiness.  As opposed to dragging the mach video window around which is smooth.

Also when pressing an onscreen button (zeroing a DRO for example) you can see a very slight delay that is not there at other times.   I am sorry I can not be more concise.

Really do like your video better, as there is no delay to showing the axis movemment on camera.  S'pose that is the price you pay.  :D

Greg