Share this

How can machine vision achieve multi-target measurement?

2026-04-06 04:39:46 · · #1

In machine vision measurement applications, most measurements are taken for the dimensions of a single product. So how can we measure multiple products simultaneously? Let's learn together! This article demonstrates how to simultaneously measure the dimensions of multiple products using In-sight software.

The implementation process of multi-target measurement is shown in the figure below.

The final result is shown in the image below.

1. Image Acquisition. There are two acquisition methods: offline and online. Offline acquisition involves pre-capturing images stored in a folder, while online acquisition involves connecting a camera for real-time image capture. Image format is BMP or JPG. Acquire the product images we need for measurement, as shown in Figure 1.

2. Pattern Positioning. Add the positioning tool "Pattern (1-10) Tool" to train the model that needs to be positioned, as shown in Figure 2. Train the entire product as the positioning model, set the number of searches to the maximum possible number of detections; set the angle tolerance to +/-180; and perform pattern positioning.

3. Select the distance measurement tool. Measurement Tools --> Distance Measurement --> Select the information for both sides.

① Select two edge information

② Select the edge locator. The sorting method is based on the X (horizontal) coordinate direction, and the order from left to right is (0, 1, 2, 3, 4);

③ Set the distance measurement type. Select point to line.

④ Repeat steps ①②③ to check all products. Ensure that the dimensions of each product can be inspected.

4. Data Display. Used to display measured distance values. Add a "Draw String Tool" under "Drawing Tools"; link the data and set the X/Y position information for the string display.

Format string setting rules: floating-point = %f; integer = %f; string = %s; octal = %o

Note: The distance information must correspond to the distance information required for the product. For example, to display the distance information for product A, select "Product A Distance".

5. Sequence/Group Tool Usage. A sequence represents the workflow steps of a project and is used to control the execution order of tools; a group is the program under the corresponding group tool that is run based on the conditions set by the sequence.

① Set up the process steps.

② Enable group tool expressions and add the run program.

③ Set the expression "Start the program under this group of tools with the current sequence step equal to 1" to enable it.

④ The method for adding groups 2 and 3 is similar to that for group 1. Follow the methods in ② and ③.

Summarize:

1. When inspecting multiple products, a pattern (1-10) positioning tool is required. This tool can position up to 10 products. If there are more than 10 products, add another tool.

2. If the number of products tested is inconsistent each time, the procedure needs to be executed step by step: step A, step B, and step C. These procedures require expression calls from "group tools." Group tools can be understood as hospital departments; just as a patient needs to register before seeing a doctor, the registered department number is required for entry.

Read next

CATDOLL 135CM Tami

Crafted with attention to detail, this 135cm doll offers a well-balanced and realistic body shape that feels natural in...

Articles 2026-02-22
CATDOLL 148CM Qing Silicone Doll

CATDOLL 148CM Qing Silicone Doll

Articles
2026-02-22
CATDOLL 146CM Laura TPE

CATDOLL 146CM Laura TPE

Articles
2026-02-22
CATDOLL Alisa Hard Silicone Head

CATDOLL Alisa Hard Silicone Head

Articles
2026-02-22