Downlook Camera X Y Offset

More
3 years 8 months ago #265079 by my1987toyota
  First Let me say I am in very uncharted water with this. What I am trying to do is have a tab that allows viewing a
live video image and with a button save the X Y position with the offset from the PnP Nozzle either in G53
or as a G54-G59.3 so that when the button is pressed the camera's position will become the Nozzle's position.
I am pretty sure I will need GladeVCP for this as well as opencv. But the task feels overwhelming. To add
to that the system is still running 2.8.0. But seeing how 2.9 hasn't to date been officially released yet
it shouldn't be a big deal. I have been reading through the manual and still feel lost. However having to
manually re-enter the camera offset every time I do a fiducial align SUUUCKS. I hope to get this working in the next
few months that said any suggestions would be greatly appreciated.

Please Log in to join the conversation.

More
3 years 8 months ago #265085 by cmorley
Replied by cmorley on topic Downlook Camera X Y Offset
Qtvcp can produce a camera image using open cv.

Please Log in to join the conversation.

More
3 years 8 months ago #265086 by cmorley
Replied by cmorley on topic Downlook Camera X Y Offset
in a terminal try:
qtvcp cam_align

and see what happens.
Post errors if you get some.

Please Log in to join the conversation.

More
3 years 8 months ago #265154 by my1987toyota
so first this is what I got
 

Attachment not found



so I installed pyqt5 then I got this
 

Attachment not found



Yes I know it is on 2 different computers the PNP doesn't have internet access
my test computer does.

Please Log in to join the conversation.

More
3 years 8 months ago #265162 by tommylight

Please Log in to join the conversation.

More
3 years 8 months ago #265163 by cmorley
Replied by cmorley on topic Downlook Camera X Y Offset
Try cam_align  with underscore

Please Log in to join the conversation.

More
3 years 8 months ago #265168 by my1987toyota
I tried qtvcp cam_align and I now have a camera image. That under score is what got me

 

Attachment not found





 

Please Log in to join the conversation.

More
3 years 8 months ago #265173 by my1987toyota
Is qtvcp recommended over gladevcp ?

Please Log in to join the conversation.

More
3 years 8 months ago #265174 by cmorley
Replied by cmorley on topic Downlook Camera X Y Offset
just another option. conveniently it already uses opencv.

Note the buttons on top. These call MDI commands but could do other things.

Please Log in to join the conversation.

More
3 years 8 months ago #265178 by my1987toyota
I obviously have a-lot more reading to do. I did notice something about the Axis zero buttons on the default
Glade vcp and how they use a gcode (G10 L20 P0 X0) defined in the ini file. to carry out the action. I will
probably make use of that to enter the camera offset. Say G10 L20 P1 X1.608 Y-0.002 for G54. It's still
early on and I am just throwing idea's at the wall to see what sticks.

Please Log in to join the conversation.

Time to create page: 0.102 seconds
Powered by Kunena Forum