Generate Point Cloud Model from Images Captured by the Camera + Add Pick Point by Adding a Pose
Generate Point Cloud Model from Images Captured by the Camera
Adjust Camera Parameters
Preparation
-
Lighting conditions: Ensure that the lighting around the target object is even and not too dark or too bright.
-
Target object placement: Place the target object within the camera’s field of view and ensure that its positioning highlights the key features of the target object.
-
Background selection: Ensure that the target object is easily distinguishable from the background.
Adjust Camera Parameters
-
Open Mech-Eye Viewer and connect the camera;
-
: Acquire data once;
-
Click point cloud to check the effect.
√
×
The target object is outside the camera’s field of view. At this time, it is necessary to place the target object within the camera’s field of view.
×
The exposure time parameter is set too low. At this point, you need to increase the exposure time in the 3D parameters.
×
The exposure time parameter is set too high. At this point, you need to decrease the exposure time in the 3D parameters.
×
The point cloud information of the target object is incomplete. Try to slightly adjust the exposure time in the 3D parameters.
-
Keep capturing until you acquire point clouds with relatively high quality.
Acquire Point Cloud
Preparation
-
Start Mech-Vision.
-
Open an existing project or create a new blank project, ensuring it includes the “Capture Images from Camera” Step. If this step is not present, please add it.
-
Click Matching Model and Pick Point Editor on the toolbar.
Acquire Point Cloud
-
Click the Capture point cloud button in the start screen, and select Capture point cloud in the pop-up window.
When the target object is flat but shows clear and fixed edge characteristics in the images (such as panels, track shoes, connecting rods, brake discs, etc.), it is recommended to use an edge model, namely selecting “Use edge point cloud”. When the surface of the target object has many undulations (such as crankshafts, rotors, steel rods, etc.), it is recommended to use a surface model.
Due to the complex surface features of the track link used in the example, it is recommended to create a surface point cloud model for this target object. Therefore, clear the ]Use edge point cloudbtn:[ checkbox. Then click the Capture object button to capture the depth map of the target object.
-
The captured depth map of the target object and background is shown as below.
-
In the upper-right corner, click the Remove background button.
-
Remove the target object in the camera’s field of view first, and click Capture background again to capture a depth map of the background.
-
The depth map of the background is shown as below. Then, click the Next button in the upper-right corner.
-
Click Remove background to generate a point cloud model of the target object, as shown below.
-
Click Finish to import the point cloud model of the target object to Matching Model and Pick Point Editor.
Edit Point Cloud
The model point cloud captured in the last Step may not meet the actual requirement. In such case, you need to edit the model, including removing outliers and downsampling the point cloud.
-
Remove outliers
Click the button, select outliers to remove, and then click the button to remove selected points. As shown in the figure below, selected points are outliers and can be removed by following this step.
-
Point cloud downsampling
Point cloud downsampling aims to reduce the number of points in the point cloud model, thus improving model matching efficiency. Click the button and set the sampling interval in the pop-up window.
In the figure below, the left image is a point cloud model before downsampling, and the right one is after downsampling with a sampling interval of 3 mm.
Add Pick Point by Adding a Pose
A model point cloud should be generated before adding pick points.
Workflow
-
Click the button on the toolbar to add a pose as a pick point to the point cloud model of the target object.
-
Select the pick point in the Model Files List, and adjust its position. There are two ways you can adjust a pick point:
-
By dragging the manipulator on the pick point: While holding the Ctrl key, click and drag a manipulator to move the pick point along the axis of this manipulator. A manipulator is successfully selected if it turns yellow after being clicked. In the figure below, the left image is before selection and the right after.
-
By editing the pose data: Pose editing can be done below CAD Files List.
-