- Configuring LinuxCNC
- Advanced Configuration
- How to get cross hairs + circles in embeded camera image
How to get cross hairs + circles in embeded camera image
28 Nov 2019 10:47 #151415
by SvenH
How to get cross hairs + circles in embeded camera image was created by SvenH
I have added a camera to my axis view by adding
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?
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.
28 Nov 2019 14:03 #151421
by cmorley
Replied by cmorley on topic How to get cross hairs + circles in embeded camera image
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
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.
28 Nov 2019 16:23 - 28 Nov 2019 16:28 #151431
by SvenH
Replied by SvenH on topic How to get cross hairs + circles in embeded camera image
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...)
(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.
29 Nov 2019 09:53 #151481
by SvenH
Replied by SvenH on topic How to get cross hairs + circles in embeded camera image
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!
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.
- Configuring LinuxCNC
- Advanced Configuration
- How to get cross hairs + circles in embeded camera image
Time to create page: 0.075 seconds