• DepthAI-v2
  • How to measure (real life measurement) the dimensions of an object ?

Greetings,

is there a way to measure the length and width of objects that we commonly have in our room like a chair or a book ?

  • erik replied to this.

    Hello Salem ,
    It's possible, but not trivial. We don't have any demos yet, but we believe that for primitive shapes (eg. cylinder, cuboid/box, spheres etc.) you could go with the pointcloud (our implementation here) approach and use a library like pyRansac or PCF to analyze the pointcloud and get these shapes. Thoughts?
    Thanks, Erik

      erik
      Hello erik,

      won't spatial coordinates by enough for this? why do i need pointcloud ?

      • erik replied to this.

        Hello Salem , maybe in some cases spatial coordinates would be enough, but I don't think this could be generalized for all cases. Could you describe the process of how to convert spatial coordiantes to dimensions of an object?

          2 months later

          erik
          define a specific areas at the far ends of a specific object, get the area's spatial coordiantes and use euclidean formula to calculate the distance. An example is shown in the image below, the actual measurement is 16 cm.