Another tab for WebCam

More
18 Nov 2010 09:10 #5393 by eslavko
Replied by eslavko on topic Re:Another tab for WebCam
Hello...

I fell very stupid...
in wiki says

* Place some code into .axisrc (in the bottom of this page);
* Obtain application capable to run in parent window;
* Add tab name/command into your .ini file.


But I can't find axisrc!?!? Where the heck is?!

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

More
18 Nov 2010 09:20 - 18 Nov 2010 09:23 #5394 by psha
Replied by psha on topic Re:Another tab for WebCam
On the bottom of that page :)

Axisrc code

Download this file and place code from it in your .axisrc

upload:axisrc-dynamic-tabs


wiki.linuxcnc.org/uploads/axisrc-dynamic-tabs

Update
camview-tiny program is superseded with camview-emc one. I've updated wiki page too
Last edit: 18 Nov 2010 09:23 by psha.

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

More
18 Nov 2010 09:42 - 18 Nov 2010 09:44 #5395 by eslavko
Replied by eslavko on topic Re:Another tab for WebCam
Hmm...

I mean where to put it!

Can you put little more detail how to embeed that. I'm still little lost in linux environment.
Last edit: 18 Nov 2010 09:44 by eslavko.

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

More
18 Nov 2010 10:17 #5396 by psha
Replied by psha on topic Re:Another tab for WebCam
Put that file into home directory and rename to '.axisrc' [1]. ~/.axisrc means file is living in your home directory (~) and starts with dot

[1] linuxcnc.org/docs/2.4/html/gui_axis.html#r1_11_4

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

More
18 Nov 2010 13:23 #5402 by eslavko
Replied by eslavko on topic Re:Another tab for WebCam
Ok there is results.

EMBED_TAB_NAME = MPlayer
EMBED_TAB_COMMAND = mplayer -wid {XID} tv://0

doesn't work..
so I look over the web and find solution:

EMBED_TAB_NAME = CAM
EMBED_TAB_COMMAND = mplayer -wid {XID} -cache 128 -tv driver=v4l:width=640:height=480:outfmt=i420 -vc rawi420 -vo xv tv://

and work. The problem is that when I quit EMC the webcam isnt released properli so webcam come unavailable (bussy) for all application (including EMC) until reboot machine

So I try
EMBED_TAB_NAME = Camera
EMBED_TAB_COMMAND = camview-emc -wid {XID}
with proper package downloaded but my webcam isn't recongnised at all.

As I alreday has webcam installed (with modified gqcam with crosshair) to run as independent application I just ask if and how is possible to connect it together with emc.

EMBED_TAB_COMMAND = gqcam -wid {XID}
just execute my application in own window (not embeded in emc2) as -wid {XID} isn't recongnized properly.
..or maybe question for psha how you do it crosshair and what software?

Thanks

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

More
18 Nov 2010 13:55 #5403 by psha
Replied by psha on topic Re:Another tab for WebCam
eslavko wrote:

Ok there is results.
EMBED_TAB_NAME = Camera
EMBED_TAB_COMMAND = camview-emc -wid {XID}
with proper package downloaded but my webcam isn't recongnised at all.

I'm working (pretty slow :)) on adding libv4l support to camview so it will eat all cameras that libv4l knows.
What is your camera and what driver is used? gspca?

EMBED_TAB_COMMAND = gqcam -wid {XID}
just execute my application in own window (not embeded in emc2) as -wid {XID} isn't recongnized properly.

You need to patch gqview to use GtkPlug instead of GtkWindow and do some black magic to force XEmbedding.

..or maybe question for psha how you do it crosshair and what software?

I'm using camunits based camview-emc program :) Crosshair (and EMC axis positions overlay) are plugins in that framework.
camview-emc is small python script based on python-camunits bindings.

If you are interested in using camview-emc please catch me in IRC.

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

More
18 Nov 2010 14:25 #5404 by eslavko
Replied by eslavko on topic Re:Another tab for WebCam
I'm interested for working module.
I just wan't to see image (but probably with correct aspect ratio as now isnt)
and to have ability to use some croshairs (few different ones - can be stored as image if necesary)

How much time "black magic" took to change gqcam?1? Can you do it?

Slavko.

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

More
18 Nov 2010 14:59 - 18 Nov 2010 15:05 #5407 by psha
Replied by psha on topic Re:Another tab for WebCam
eslavko wrote:

I'm interested for working module.
I just wan't to see image (but probably with correct aspect ratio as now isnt)
and to have ability to use some croshairs (few different ones - can be stored as image if necesary)

Who is breaking aspect ratio?! All viewers i've tested retain aspect ration of input stream

How much time "black magic" took to change gqcam?1? Can you do it?.

Not much. You may take patch i've used for stock camview and use it for gqcam
Personally i'd perfer to fix camview to work with all cams then to work with gqcam.

Camunits provide good way to write and reuse plugins, so that's why i think patching gqcam
is worse solution.
Last edit: 18 Nov 2010 15:05 by psha.

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

More
18 Nov 2010 16:16 #5409 by eslavko
Replied by eslavko on topic Re:Another tab for WebCam
When I resize EMC window the CAM portition is always completly filed with image - ie image ocupye complete area. So If I resize window to be lot wider then image still ocuppy full area. To maintain aspect I think I should see black stripes on left and right and ful height image.

I don't say that gqcam is better than camview. Just gqcam work in my system and camview not. If you can fix it then welcome. I just wish to use working one and to can configure crosshair.

If you can help then I can tell only THANKS as you are too far away to get some beer. :woohoo: on my account.

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

More
18 Nov 2010 16:28 #5410 by psha
Replied by psha on topic Re:Another tab for WebCam
Fixing camview to work with strange cams is on my todo list so
But first i need to know what camera are you using? What driver?
Is it gspca one?

Magic to embed gtk into tk may be found at psha.org.ru/cgit/psha/camunits.git/commi...c257651270090d6b30d5
but this code is abandoned

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

Time to create page: 0.087 seconds
Powered by Kunena Forum