QTvcp Cam View Dialog
14 Sep 2020 09:16 #182066
by partec
QTvcp Cam View Dialog was created by partec
LinuxCNC 2.8.0 Buster installed from iso
formerly we used CamPY with 2.7.14
linuxcnc.org/docs/2.8/html/gui/qtvcp_wid...ml#_camview_widget_2
2.4. Camview Widget
This is used to align the work piece or zero part features using a webcam.
It uses opencv vision library.
attempt with traditional AXIS works fine
[DISPLAY]
EMBED_TAB_NAME
EMBED_TAB_COMMAND=halcmd loadusr qtvcp –push_xid cam_align
it would be nice if a better prepared variant could be included in the release or if practical instructions for individual configuration could be documented
can I do something about it
formerly we used CamPY with 2.7.14
linuxcnc.org/docs/2.8/html/gui/qtvcp_wid...ml#_camview_widget_2
2.4. Camview Widget
This is used to align the work piece or zero part features using a webcam.
It uses opencv vision library.
attempt with traditional AXIS works fine
[DISPLAY]
EMBED_TAB_NAME
EMBED_TAB_COMMAND=halcmd loadusr qtvcp –push_xid cam_align
it would be nice if a better prepared variant could be included in the release or if practical instructions for individual configuration could be documented
can I do something about it
Attachments:
Please Log in or Create an account to join the conversation.
14 Sep 2020 13:25 #182079
by cmorley
Replied by cmorley on topic QTvcp Cam View Dialog
try this:
EMBED_TAB_NAME= qtscreen
EMBED_TAB_COMMAND= halcmd loadusr -Wn qtvcp_embed qtvcp -d -c qtvcp_embed -x {XID} cam_align
EMBED_TAB_NAME= qtscreen
EMBED_TAB_COMMAND= halcmd loadusr -Wn qtvcp_embed qtvcp -d -c qtvcp_embed -x {XID} cam_align
The following user(s) said Thank You: partec
Please Log in or Create an account to join the conversation.
14 Sep 2020 14:20 - 14 Sep 2020 14:21 #182085
by partec
Replied by partec on topic QTvcp Cam View Dialog
thank you Chris, this works fine to embed it correct to the tab, and how can the size of the circle be adjusted, make it more and less large? Peter
Last edit: 14 Sep 2020 14:21 by partec.
Please Log in or Create an account to join the conversation.
14 Sep 2020 15:13 #182092
by cmorley
Replied by cmorley on topic QTvcp Cam View Dialog
I use a laptop to test - I hope a mouse will be the same.
button1 + scroll = zoom
button 2 + scroll = rotate cross
button 3 + scroll ( or button 1+2 + scroll) = circle diameter.
button1 + scroll = zoom
button 2 + scroll = rotate cross
button 3 + scroll ( or button 1+2 + scroll) = circle diameter.
The following user(s) said Thank You: partec
Please Log in or Create an account to join the conversation.
14 Sep 2020 15:16 #182093
by cmorley
Replied by cmorley on topic QTvcp Cam View Dialog
If you want the set origin and go to origin buttons to work you must add MDI monnads to the INI
something like this:
[MDI_COMMAND_LIST]
MDI_COMMAND = G10 L20 P0 X0Y0
MDI_COMMAND = G0x0y0z0
something like this:
[MDI_COMMAND_LIST]
MDI_COMMAND = G10 L20 P0 X0Y0
MDI_COMMAND = G0x0y0z0
The following user(s) said Thank You: partec
Please Log in or Create an account to join the conversation.
14 Sep 2020 15:24 #182095
by partec
Replied by partec on topic QTvcp Cam View Dialog
Chris, this is high tech, absolutely perfectly finished, thank you for all that great work!
Please Log in or Create an account to join the conversation.
14 Sep 2020 16:16 #182100
by cmorley
Replied by cmorley on topic QTvcp Cam View Dialog
Great! let me know if there are improvements that could be added.
I think it's pretty useful as is though.
I think it's pretty useful as is though.
The following user(s) said Thank You: partec
Please Log in or Create an account to join the conversation.
14 Sep 2020 18:08 #182115
by partec
Replied by partec on topic QTvcp Cam View Dialog
of course, I will gladly reproduce my usual usage procedures here, as soon as possible
Please Log in or Create an account to join the conversation.
14 Sep 2020 20:23 #182131
by rodw
Chris, I see OpenCV has edge and corner detection. How could the opencv library be used to automatically find the edges and corners of a sheet of material placed on a plasma table? The intent would be to wander around on its own and discover the 0,0 corner and then rotate X & Y coordinates around Z. An 8' x 12 ' 3/4" sheet of steel is pretty heavy so its not really feasible to align the sheet perfectly.
Now that would be a cool improvement!
Replied by rodw on topic QTvcp Cam View Dialog
Great! let me know if there are improvements that could be added.
I think it's pretty useful as is though.
Chris, I see OpenCV has edge and corner detection. How could the opencv library be used to automatically find the edges and corners of a sheet of material placed on a plasma table? The intent would be to wander around on its own and discover the 0,0 corner and then rotate X & Y coordinates around Z. An 8' x 12 ' 3/4" sheet of steel is pretty heavy so its not really feasible to align the sheet perfectly.
Now that would be a cool improvement!
The following user(s) said Thank You: Aciera
Please Log in or Create an account to join the conversation.
15 Sep 2020 01:22 #182168
by cmorley
Replied by cmorley on topic QTvcp Cam View Dialog
IIRC samco had a python opencv program to search for holes. i wonder if he still has it...
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.105 seconds