How to get cross hairs + circles in embeded camera image

More
28 Nov 2019 10:47 #151415 by SvenH
I have added a camera to my axis view by adding
EMBED_TAB_NAME = Camera
EMBED_TAB_LOCATION = ntb_preview
EMBED_TAB_COMMAND = mplayer -wid {XID} tv:// -tv driver=v4l2 -vf

To the .ini file

But I have been unable to find info (that I could understand and follow) on how to overlay crosshairs+circles on the resulting image.

Is there a surefire way to do this?

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

More
28 Nov 2019 14:03 #151421 by cmorley
try:
mplayer -wid {XID} tv://0 -vf rectangle=-1:2:-1:240,rectangle=2:-1:320:-1

from here:
forum.linuxcnc.org/10-advanced-configura...cam-axis-cross-hairs

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

More
28 Nov 2019 16:23 - 28 Nov 2019 16:28 #151431 by SvenH
Thanks, will give it a try tomorrow!

(Weird that I did not find this post when searching, either on the forum directly or via search engine...)
Last edit: 28 Nov 2019 16:28 by SvenH.

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

More
29 Nov 2019 09:53 #151481 by SvenH
Result!

I used " EMBED_TAB_COMMAND = mplayer -wid {XID} tv:// -vf rectangle=-1:2:-1:239,rectangle=2:-1:319:-1"

To get the lines in center of my image.
Would still like to have circles too but now I can calibrate the setup.

Thanks!

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

Time to create page: 0.119 seconds
Powered by Kunena Forum