Getting length, width and height of an object
I recently bought a D435 camera for my project that is getting length, width and height of an object having dimension of max 1.5X1.5X1.5 meters and minimum 0.10.X0.10X0.10 meters and camera has fixed height about 2 meters on top of the object. I'm using C# and need to get values in the program with maximum error of 1 cm. I already downloaded SDK but looks like there is no sample code in this area to help me. I don't know where to start. I even can use OpenCV that gets data from RGB camera but how to get it from 3D camera? Is this camera a right choice for this project or using D415 or other models is better?
Below image shows testing area and object is pink box

-
The D415 is better for scanning non-moving objects as it has around 2.5x the image quality of D435 (and so less error when measuring from a distance). It has a smaller field of view size though so it has to be further away from large objects to fit it fully in its view.
At the 2m height that you are sensing the box from in your image and the amount of empty space around it, you may be able to have a D415 at the same distance and still fit the box in its view.
The link below discusses error over distance, which increases linearly as an observed object is further away from the camera.
https://github.com/IntelRealSense/librealsense/issues/4894
For C#, a RealSense user who was also measuring a box from above posted a volume measuring script that may be a good starting point for you.
https://github.com/IntelRealSense/librealsense/issues/2657
Please sign in to leave a comment.
Comments
1 comment