Open ElNino9495 opened 1 year ago
If I understood your request correctly, then the easiest way is to apply midas to the entire image, take a box crop, and then inside the crop, either select the center pixel, or find the pixel with the highest value (for example, using np.max or cv.minMaxLoc)
How do i apply midas to a particular pixel such that it inly applies to the centroid of the bounding box of an object detection label of yolo v8