- Posts: 2581
- Thank you received: 907
Camera For Touchoff
- snowgoer540
- Offline
- Moderator
-
Less
More
6 years 1 month ago #182804
by snowgoer540
Replied by snowgoer540 on topic Camera For Touchoff
I continually forget there’s anything else :laugh:
Please Log in or Create an account to join the conversation.
6 years 1 month ago - 6 years 1 month ago #182822
by phillc54
Replied by phillc54 on topic Camera For Touchoff
A little enhancement:
Plus if you use Axis it sets Gregs new refresh HAL pin to refresh the Preview display.
I have attached the file here and also to the first post in this thread, the cam_align_origin.ngc file is no longer required so an edit to the ini file is needed, the [MDI_COMMAND_LIST] section should be changed to:
Plus if you use Axis it sets Gregs new refresh HAL pin to refresh the Preview display.
I have attached the file here and also to the first post in this thread, the cam_align_origin.ngc file is no longer required so an edit to the ini file is needed, the [MDI_COMMAND_LIST] section should be changed to:
Code:
# for the camera tab
[MDI_COMMAND_LIST]
# X and Y are the offset values from the crosshairs to the torch
MDI_COMMAND = G10 L20 P0 X0 Y0
# origin move
MDI_COMMAND = G0 X0 X0
Last edit: 6 years 1 month ago by phillc54.
Please Log in or Create an account to join the conversation.
6 years 1 month ago #182825
by partec
Replied by partec on topic Camera For Touchoff
thank you i really appreciate it
The following user(s) said Thank You: phillc54
Please Log in or Create an account to join the conversation.
6 years 1 month ago #182843
by rodw
Replied by rodw on topic Camera For Touchoff
Actually, auto edge detection with the USB camera does not look too hard. You can look for edges in a video stream in 15 lines of code:
medium.com/@akash555bhiwgade/edge-detect...d-webcam-8f980c79a86
So if you started in the middle of the sheet somewhere, you'd move along the X axis towards 0 until you find an edge. Then centre the camera crosshairs on that edge (you may need to set the mm per pixel to coordinate motion. Save that position. I think the system would allow you to read coordinates along the edge so you could calculate the angle to follow to the home position.
Then move along the Y axis in the direction determined until you find a corner (another 15 lines of code) and you are there. Save position and rotate axes.
Only problem is I don't have a USB camera but I think a proof of concept could be achieved with a couple of photos of the sheet. I might try that.
medium.com/@akash555bhiwgade/edge-detect...d-webcam-8f980c79a86
So if you started in the middle of the sheet somewhere, you'd move along the X axis towards 0 until you find an edge. Then centre the camera crosshairs on that edge (you may need to set the mm per pixel to coordinate motion. Save that position. I think the system would allow you to read coordinates along the edge so you could calculate the angle to follow to the home position.
Then move along the Y axis in the direction determined until you find a corner (another 15 lines of code) and you are there. Save position and rotate axes.
Only problem is I don't have a USB camera but I think a proof of concept could be achieved with a couple of photos of the sheet. I might try that.
Please Log in or Create an account to join the conversation.
6 years 1 month ago #182845
by phillc54
Replied by phillc54 on topic Camera For Touchoff
I think it would be quicker to do it the way it is.
Please Log in or Create an account to join the conversation.
6 years 1 month ago #182847
by Mud
Replied by Mud on topic Camera For Touchoff
I think the scope creep on Rod's idea is you end up detecting all edges on used material, so you can thread the needle on nesting tightly ad hoc...shall I go put in a feature request?
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.190 seconds