Hi,
My inention is get the depth at every 10*10 pixel (or any legnth But we need the depth of the frame in all regions and we can filter the regions we dont want) in the frame and save them to a CSV with the pixel cordinates.
After setting the pipelines I have found this command: spatialData = spatialCalcQueue.get().getSpatialLocations()
The spaitial data have the spatial cordinates, so I can calculate the depth . But the when I print the spatial data
It gives the following output:
<depthai.SpatialLocations object at 0x000002023FC012F0>
<depthai.SpatialLocations object at 0x000002023FC23EF0>
<depthai.SpatialLocations object at 0x000002023FC012F0>
Well I can see that it is calculating the depth at differnt points in the frame,but I am not avle to undertand at whoch point the depth is calculated. I can use ROI , But I am able to get pnly depth at a region.
Is there a way where I can map the objects using the spaital data from spatialData = spatialCalcQueue.get().getSpatialLocations(). So I can convert them into pixel locations and save them into a csv,
Is there any program to get the pixel values and the depth at the location?
Thank you
Before requesting support, please see: https://docs.luxonis.com/en/latest/pages/support/