User Tools

Site Tools


quickstart:mycnc-quick-start:cnc-vision-setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
quickstart:mycnc-quick-start:cnc-vision-setup [2020/01/16 14:04] ivanquickstart:mycnc-quick-start:cnc-vision-setup [2020/07/13 12:43] ivan
Line 1: Line 1:
-=====CNC Vision Setup=====+=====CNC Vision (Optical Registration Mark Reading) Setup=====
  
 This manual is designed to introduce the reader to the setup process of the CNC vision system, and some of its applications.  This manual is designed to introduce the reader to the setup process of the CNC vision system, and some of its applications. 
  
-//Please note that the Vision System license for correcting the generated G-code using visual markers is a separate license that must be purchased in addition to the myCNC controller in order to be enabled (available as part of the [[https://shop.pv-automation.com/mycnc/55-1787-cnc-vision-components.html|CNC Vision Kit package]] in our [[https://shop.pv-automation.com/mycnc/55-1787-cnc-vision-components.html|Online Shop]]).// +//Please note that the Vision System license for correcting the generated G-code using registration mark reading is a separate license that must be purchased in addition to the myCNC controller in order for the DACS (Digitally Aligned Cutting System)  to be enabled (available as part of the [[https://shop.pv-automation.com/mycnc/55-1787-cnc-vision-components.html|CNC Vision Kit package]] in our [[https://shop.pv-automation.com/mycnc/55-1787-cnc-vision-components.html|Online Shop]]).// 
  
 A video with the recap of the manual below is available here: A video with the recap of the manual below is available here:
Line 17: Line 17:
   * **IP Camera Initialization line** lists the camera IP for the connection to be established.    * **IP Camera Initialization line** lists the camera IP for the connection to be established. 
  
-  * **Pattern size** can be set experimentally to be about 30-50% larger than the marker itself, in order to account for the visual transition between the marker and its surroundings. +  * **Pattern size** can be set experimentally to be about 30-50% larger than the registration mark itself, in order to account for the visual transition between the marker and its surroundings. 
     * In the case of the particular marker used in this scenario, its size has been set to 160 pixels, which is on the low end of the relative pattern size - a larger pattern size is typically a safer choice in low-light conditions.      * In the case of the particular marker used in this scenario, its size has been set to 160 pixels, which is on the low end of the relative pattern size - a larger pattern size is typically a safer choice in low-light conditions. 
     * NOTE: The camera focus must be properly adjusted in order for the camera to recognize markers.      * NOTE: The camera focus must be properly adjusted in order for the camera to recognize markers. 
Line 23: Line 23:
 {{:quickstart:mycnc-quick-start:cnc-vision-003-marker-size.jpg}} {{:quickstart:mycnc-quick-start:cnc-vision-003-marker-size.jpg}}
  
-  * **Region of interest** (in pixels) signifies the area in which the camera is actively looking for markers, and should usually be set to be equal or slightly smaller than the actual resolution of the camera. It is set automatically in the newer software versions during the calibration process (software versions after July 2019). +  * **Region of interest** (in pixels) signifies the area in which the camera is actively looking for registration marks, and should usually be set to be equal or slightly smaller than the actual resolution of the camera. It is set automatically in the newer software versions during the calibration process (software versions after July 2019). 
  
   * **Pixel to length coefficient** is used to convert the pixels travelled into the actual physical distance moved, in mm. You are able to calibrate this for both the x- and the y-axes. In order to set up the correct coefficient for your camera, use the Calibrate button in the Camera tab, or consult the full set of manual set up instructions below (useful for older software versions).   * **Pixel to length coefficient** is used to convert the pixels travelled into the actual physical distance moved, in mm. You are able to calibrate this for both the x- and the y-axes. In order to set up the correct coefficient for your camera, use the Calibrate button in the Camera tab, or consult the full set of manual set up instructions below (useful for older software versions).
Line 41: Line 41:
   * **Pattern Match Level** describes the level of parity with the original reference marker that each new marker must have for the system to recognize it. Higher numbers mean less parity (more differences between the markers), so as to avoid false positives it is advised to keep the numbers on the lower end of the scale. The graph below the Pattern Match Level indicates the parity levels during the machine search for markers, with the low points of the graph being indicative of the places where marker parity is highest (differences between new marker and reference are lowest).    * **Pattern Match Level** describes the level of parity with the original reference marker that each new marker must have for the system to recognize it. Higher numbers mean less parity (more differences between the markers), so as to avoid false positives it is advised to keep the numbers on the lower end of the scale. The graph below the Pattern Match Level indicates the parity levels during the machine search for markers, with the low points of the graph being indicative of the places where marker parity is highest (differences between new marker and reference are lowest). 
     * If the program has issues locating markers due to those markers being slightly different (due to material imperfections, light reflections, etc), it is recommended to raise the Pattern Match Level until the program accepts the variations. However, raising this value too high will lead to false positives on marker recognition.     * If the program has issues locating markers due to those markers being slightly different (due to material imperfections, light reflections, etc), it is recommended to raise the Pattern Match Level until the program accepts the variations. However, raising this value too high will lead to false positives on marker recognition.
 +{{:quickstart:mycnc-quick-start:cnc-vision-030-parity-chart.png}}
  
-  * **Image sensor correction** corrects for sensors with different aspect ratios. Use this if the marker image appears distorted or stretched when viewed through the Camera tab in myCNC software. +  * **Image sensor correction** corrects for sensors with different aspect ratios. Use this if the registration mark image appears distorted or stretched when viewed through the Camera tab in myCNC software. 
  
 ====CNC Vision codes==== ====CNC Vision codes====
Line 140: Line 141:
  
 //Obsolete method only used on program versions older than July 2019. In all recent versions the pixel to length coefficients is calculated automatically by the program during the calibration process.// //Obsolete method only used on program versions older than July 2019. In all recent versions the pixel to length coefficients is calculated automatically by the program during the calibration process.//
 +
 +++++ Click to expand the instructions |
    
 The pixel to length coefficient is necessary for the camera to know how many millimeters it had moved after having traversed a certain number of pixel to the left/right/top/bottom of its original position. This procedure is done by finding the ratio of millimeters moved to pixels travelled. While it is automated in the newer versions of myCNC software, it can also be done manually in the older software versions.  The pixel to length coefficient is necessary for the camera to know how many millimeters it had moved after having traversed a certain number of pixel to the left/right/top/bottom of its original position. This procedure is done by finding the ratio of millimeters moved to pixels travelled. While it is automated in the newer versions of myCNC software, it can also be done manually in the older software versions. 
Line 179: Line 182:
 After both axes have been calibrated, the machine will now have a proper coefficient of the number of pixels it moved by versus actual distance travelled in millimeters. After both axes have been calibrated, the machine will now have a proper coefficient of the number of pixels it moved by versus actual distance travelled in millimeters.
  
 +++++
  
 ====Using the hotkeys to move the camera==== ====Using the hotkeys to move the camera====
quickstart/mycnc-quick-start/cnc-vision-setup.txt · Last modified: 2024/02/26 14:50 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki