Detect and Measure Line

You are currently viewing the documentation for the latest version (2.1.0). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

Contents of this Step are under maintenance. If you need more information about this Step urgently, please visit Mech-Mind Online Community.

Function

This Step manually sets an ROI that contains the line segment to detect, and this Step will detect the line segment and output its info. Edge detection frames arranged in parallel along the lateral direction of the ROI will be generated within the manually selected ROI, object edge points will be detected through grayscale changes in the edge detection frames, and in the end, the edge points will be used to fit the accurate line.

Usage Scenario

This Step is for detecting the pixel-wise positions of object edge line segments in images to prepare for subsequent calculation of physical dimensions in measurement scenarios.

Input and Output

  • Input:

    1. Image input at this port will have a line segment in ROI detected.

    2. 2D transformation input at this port is used to transform the ROI set in a previous execution to the appropriate position.

  • Output:

    1. Visualization image.

    2. Pixel-wise coordinates of the two endpoints of the detected line segment.

    3. Pixel-wise coordinates of the midpoint of the detected line segment.

    4. The tilt angle of the detected line from the horizontal direction. Range: –180° to 180°. The horizontal direction pointing to the right of the image is 0°, and the clockwise direction is positive.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.