Hello I am using a modified version of the spatial location calculator and I am trying to make my depth image be (1280, 720)
However the image is being outputted as (1280, 800) so my bounding boxes do not match since my custom model is being fed 1280, 720 images from the color camera.
In the following code I am trying to make the depth output be 1280, 720 but it does not work.
self.stereo.setDefaultProfilePreset(dai.node.StereoDepth.PresetMode.HIGH_DENSITY)
self.stereo.initialConfig.setMedianFilter(dai.MedianFilter.MEDIAN_OFF)
self.stereo.setLeftRightCheck(True)
self.stereo.setExtendedDisparity(True)
self.stereo.setSubpixel(True)
self.stereo.setOutputSize(1280, 720)
self.spatialLocationCalculator.inputConfig.setWaitForMessage(False)
self.config.depthThresholds.lowerThreshold = 200 self.config.depthThresholds.upperThreshold = 10000 self.calculationAlgorithm = dai.SpatialLocationCalculatorAlgorithm.MEDIAN self.config.roi = dai.Rect(self.topLeft, self.bottomRight) self.spatialLocationCalculator.initialConfig.addROI( self.config)