Closed akshayacharya97 closed 3 years ago
Hi @akshayacharya97 Do you still require assistance with this case, please? Thanks!
Case closed due to no further comments received.
Hi @MartyG-RealSense ,
I'm doing the project that same as this case : using realsense L515 camera and YOLO to detect object and then calculate object dimension of that object (width, height, length).
I studied "Box Measurement" example but it needs chessboard backdrop and not moving object, so it's not suitable for my case.
Could you guide me how to measure dimension of an object (width, height and length) when that object is detected and has bounding box ?
Thank you in advance.
Hi @michaelnguyen11 If you are able to make use of a commercial solution, Intel has a non-chessboard box measuring solution for L515 called Dimensional Weight Software.
Hi @MartyG-RealSense ,
Thank you for your quick response.
I have 2 Intel Realsense cameras : L515 and D435i, I'm trying to demonstrate measuring object dimension on both camera. With L515 camera, I can use the Dimensional Weight Software solution.
However, in case of D435i camera, could you guide me how to measure the object dimension when the object is detected and got bounding box ?
Thank you in advance.
There was a RealSense user who calculated box dimensions from the angles between the box faces after generating a point cloud of it.
https://github.com/IntelRealSense/librealsense/issues/5506
Another approach to obtaining the volume of an object may be to generate a point cloud of it and then convert it to a mesh.
This link suggests some further possibilities for measuring to a D435i owner:
https://stackoverflow.com/questions/57472065/object-detection-using-intel-real-sense
The commercial product LIPSMetric Parcel Kiosk took the approach of using OpenVINO Toolkit for their RealSense-powered box measuring solution.
https://www.lips-hci.com/lipsmetric
Also in regard to commercial products, MobileWorkxs offer a tablet-based box dimensioning tool based around the D415.
https://www.mobileworxs.com/products/volume-dimensioning-3d-camera-system/
Hey @akshayacharya97, I am also working on something similar where I try to detect objects using a realsense camera. Do you think you can share the dataset of the apples with me? Thanks a lot :)
Hi @sampreets3 My understanding is that YOLOv4 has a pre-trained COCO (Common Objects in Context) dataset called coco.data that contains data about objects, including apples. The YOLOv4 setup of @akshayacharya97 references this dataset.
Hey @MartyG-RealSense , oh okay in that case I can start from a model pretrained on COCO dataset and expect some results. Thanks for your help :)
I am running darknet to detect a few objects. I am using the realsense L515 camera. I would now like to calculate the size (length and breadth) of the detected object using the realsense L 515. How do I go about this? I have the bounding box around the objects obtained from darknet. Will that help in any way?
This is my code
This is the output file How do i calculate the 2d dimensions roughly from the image?