I am using Mech-MSR version 2.1.0 with the Mech-Eye LSR XL-GL. There is no robot being used with this setup. The working distance from the camera to the part is 2280mm to 2500mm and I am inspecting the edges of a box and the bottom side of the calibration grid.
When using the ‘Fit Line to Surface Edge’ step, there will be instances where the fitted line is above or below the surface of the part, as shown below:
I have tried adjusting the size of the 3D ROI as well as the individual settings for the tool itself, but I can’t get this to consistently lineup with the edge.
Secondly, there will be times when either the power cycles or I disconnect then reconnect to the camera that the ROIs have shifted. I am not sure what is causing this so I can’t give a good way to replicate this issue.
I am also working with Calculate Results by Python and am wondering if there is a way to have the thresholds from a previous Step be inputs for the Python step. It would make coding and keeping track of changes a lot easier to do.
The height position of the fitted line output by the “Fit Line to Surface Edge” step is the average Z-value of the edge points (both valid and invalid points). Based on the lack of visibility into the parameters you have set, it is speculated that this issue arises because you have selected “Include Null Points” in the step parameter area and set “Null Filling Value of Depth” the displayed height position of the fitted line does not align with the surface of the part. You can try unchecking “Include Null Point” or setting the position of invalid points to the same height as valid points to resolve the issue you encountered.
Regarding the offset of the 3D ROI position after the device power cycle, it is speculated that this may occur because the 3D ROI adjustments were not saved in the project, causing the 3D ROI to revert to its previous position when the project is reloaded. Please pay attention to this.
Concerning your question about whether the thresholds from the previous step can be passed as inputs to the Python step, this functionality will be available in future version updates.