Hello everyone,
I am working on a project using an oak-d pro and depthai-python. I am trying to output the 2D profile (cross-section) of a horizontal strip of a depth image.
Starting with the ‘spatial_location_calculator’ example, I configured the roi as a small narrow rectangle which moves incrementally across each frame from left to right, recording the X and Z values to a list. After each scan, I plot the values to get my cross-sectional profile.
This works, but is very slow for “higher resolution” scans where the step size is small.
Rather than shifting the roi over each new frame, I would like to pull all of the depth values (X and Z) across a horizontal line from a single frame.
If anyone has any suggestions on how to best accomplish this, I would greatly appreciate any guidance.
Thank you,
-Luke