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 [2019/07/02 12:41] ivanquickstart:mycnc-quick-start:cnc-vision-setup [2020/01/08 10:13] ivan
Line 3: Line 3:
 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. 
  
-In order to set up the camera to work properly, you must go into the **CNC Settings > Camera**. The screen presented to you will be the one shown below:+//Please note that the CNC Vision 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 (for example, as part of the CNC Vision package that is available in our [[https://shop.pv-automation.com/|Online Shop]]).//  
 + 
 +In order to set up the camera, you must go into the **CNC Settings > Config > Camera**. The screen presented to you will be the one shown below:
  
 {{:quickstart:mycnc-quick-start:camera-july2-001.png}} {{:quickstart:mycnc-quick-start:camera-july2-001.png}}
  
-**Camera Interface** allows to choose between a camera connected through a USB cord or through LAN. If the camera is connected through LAN, the **Initialization line** must list the correct IP address of the camera, while the USB channel is used if the camera is connected through a USB cord.+  * **Camera Interface** allows to choose No Camera and a camera that is connected through LAN. If the camera is connected through LAN, the **Initialization line** must list the correct IP address of the camera.
  
-**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 slightly larger than the marker 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. NOTE: The camera focus must be properly adjusted in order for the camera to recognize markers. +  * **Pattern size** can be set experimentally to be slightly larger than the marker 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. NOTE: The camera focus must be properly adjusted in order for the camera to recognize markers. 
  
 {{: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. +  * **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. 
  
-**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.+  * **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.
  
-**Camera Shift** describes the distance the machine will move by if it does not locate a marker after it has been instructed to look for one. This can happen when the marker is not fully within the region of interest, and then the camera will keep on moving around until it either finds the marker or reaches the end of this specified Camera Shift. It is set automatically in the newer software versions during the calibration process. +  * **Camera Shift** describes the distance the machine will move by if it does not locate a marker after it has been instructed to look for one. This can happen when the marker is not fully within the region of interest, and then the camera will keep on moving around until it either finds the marker or reaches the end of this specified Camera Shift. It is set automatically in the newer software versions during the calibration process. 
  
-**Tool number** is usually assigned to be 10, however other tool numbers can be used if necessary.+  * **Tool number** is usually assigned to be 10, however other tool numbers can be used if necessary.
  
-**Camera offset** values are used to specify the distance from the camera to the working tool in the xy-plane. +  * **Camera offset** values are used to specify the distance from the camera to the working tool in the xy-plane. 
  
-**Camera tool length** value is used to specify the distance from the camera to the working tool tip in the z-axis. +  * **Camera tool length** value is used to specify the distance from the camera to the working tool tip in the z-axis. 
  
-**Ignore decoder errors** flag is set to OFF by default.+  * **Ignore decoder errors** flag is set to OFF by default.
  
-**Shift Speed** describes the speed with which the machine is moving during its camera shift phase while trying to find the marker. NOTE: Deprecated on the newer versions of myCNC software. +  * **Shift Speed** describes the speed with which the machine is moving during its camera shift phase while trying to find the marker. NOTE: Deprecated on the newer versions of myCNC software. 
  
-**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). 
  
-**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 marker image appears distorted or stretched when viewed through the Camera tab in myCNC software. 
  
 ====Running the calibration==== ====Running the calibration====
 +
   *Go to the Camera tab of myCNC software by opening the Settings panel from the main screen   *Go to the Camera tab of myCNC software by opening the Settings panel from the main screen
   *Select an appropriate marker (pattern) size and click the Record button   *Select an appropriate marker (pattern) size and click the Record button
Line 49: Line 52:
 {{:quickstart:mycnc-quick-start:camera-july2-006.png}} {{:quickstart:mycnc-quick-start:camera-july2-006.png}}
  
-====Setting up the pixel to length coefficients (older software versions)====+====Setting up the pixel to length coefficients (software versions older than July 2019)====
  
 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 91: Line 94:
  
 ====Using the hotkeys to move the camera==== ====Using the hotkeys to move the camera====
-In order to move the camera straight from the Camera tab, a set of hotkeys have been designed specifically for that purpose. Note that the hotkeys are only present in the more recent versions of myCNC software. Please update if the camera hotkeys are not present in your profile version. +In order to move the camera straight from the Camera tab, a set of hotkeys have been designed specifically for that purpose. Note that the hotkeys are only present in the more recent versions of myCNC software. Please update the myCNC application if the camera hotkeys are not present in your profile version. 
  
 |HOTKEY|ACTION| |HOTKEY|ACTION|
-| Arrow Up | Move in positive y-direction | +''Arrow Up'' | Move in the positive y-direction | 
-| Arrow Right | Move in positive x-direction | +''Arrow Right'' | Move in the positive x-direction | 
-| Arrow Down | Move in negative y-direction | +''Arrow Down'' | Move in the negative y-direction | 
-| Arrow Left | Move in negative x-direction | +''Arrow Left'' | Move in the negative x-direction | 
-| Space | Switch the step jog (00.1 through 1 mm) | +''Space'' | Switch the step jog size (00.1 through 1 mm) | 
-| Hold Control and Arrow keys| Move by the selected step jog |+| Hold ''Control'' and ''Arrow'' keys | Move by the selected step jog |
  
 =====CNC Vision Example===== =====CNC Vision Example=====
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