You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
Hi there,
I have ran the monocular depth estimation model using the mono-depth fine-tuned on Kitti on one one of my images: python run_monodepth.py --model_type=dpt_hybrid_kitti
I want to extract the metric depth at every specified pixel so I wrote this code:
img = cv2.imread("results25_kitti2.pfm", cv2.IMREAD_UNCHANGED)
height, width = img.shape[:2]
x = int(input("Enter x coordinate: "))
y = int(input("Enter y coordinate: "))
if x < 0 or x >= width or y < 0 or y >= height:
print("Invalid coordinates")
else:
pixel_value = img[y, x]
print("Pixel value:", pixel_value)
However I'm getting values in the range of 2000-4000 and I'm not sure whether they are the metric depth in cms?
The text was updated successfully, but these errors were encountered:
Where did you take the results25_kitti2.pfm file? Normally, depth map from KITTI is written in uint16, and you should divise by 256 to get depth values in meters.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there,
I have ran the monocular depth estimation model using the mono-depth fine-tuned on Kitti on one one of my images:
python run_monodepth.py --model_type=dpt_hybrid_kitti
I want to extract the metric depth at every specified pixel so I wrote this code:
However I'm getting values in the range of 2000-4000 and I'm not sure whether they are the metric depth in cms?
The text was updated successfully, but these errors were encountered: