OpenCV Python Depth Map Stereo Vision
ฝัง
- เผยแพร่เมื่อ 5 ก.ค. 2024
- In this video, I will go over depth maps in OpenCV using Python in VS Code. I will explain what depth maps are and how to calculate and tune the parameters to get good depth map results. We will take two stereo images from the Middlebury dataset and use the block matching and semi-global matching algorithms and compare the depth map results.
0:00 Introduction
0:23 What is depth map?
1:19 Why do we need depth map?
1:35 How does depth map work?
3:56 Code
Thanks for watching! If you found this video helpful, please like, subscribe and share:
/ @kevinwoodrobotics
Social:
LinkedIn: / kevinwoodrobotics
Github: github.com/kevinwoodrobotics
Instagram: / kevinwoodrobotics
Twitter: / kevinwoodrobotics
Code and Doc: kevinwoodrobotics.com/product/opencv-python-depth-map/
OpenCV Python Playlist Code and Doc: kevinwoodrobotics.com/product/opencv-python-tutorials-full-playlist/
Learn more about camera calibration: OpenCV Python Camera Calibration th-cam.com/video/H5qbRTikxI4/w-d-xo.html
Useful content ❤
Great topic. Thank you for sharing
Thanks for tuning in
great vlog❤️watching this video
Thanks!
Thank you for sharing 😊❤
Great video.
Thanks!
good job👏
Nice video!
Thanks!
Thank you so much! Have used the ssd or normalized coefficients correlation in your code? If yes, how did you?
Awesome
Thanks!
Good work
Thanks!
@@kevinwoodrobotics my pleasure
nice
Thank you so much! Have you used the ssd or normalised coefficients correlation in your code? If yes, how did you?
Thanks for tuning in! The stereo.compute handles that part for you so I’m not actually implementing that part for the stereo matching. But I talk about it in my template matching video.
github.com/kevinwoodrobot/opencv-python-tutorials/tree/main/38-template-matching
th-cam.com/video/BNXu20ToDl4/w-d-xo.htmlsi=lo35MiqcqQ8e7fVb
First notify here
What is the baseline and f used for this disparity? Where in the code we should define these parameters of our configuration?
Great question. You’ll need it when you try to compute the actual depth value z from the disparity, typically for 3D reconstruction or distance measurements.
Thanks for the video. Would this work if one of the view is a fisheye camera from a different view point?
It’s better to calibrate your camera and undistort your images first. I have a video on camera calibration if you want to check it out!
Thanks @@kevinwoodrobotics . In case you want some ideas for your future videos, you can do depth map on fisheye cameras. Or automatic calibration without a cherckerboard. Good luck! Keep it up.
still watching 🙃
is it better than ODM, COLMAP, NERF or NERFSTUDIO ?
There’s been a lot of new work on NERF lately with great results, however it really depends on the scene you are looking at. COLMAP is typically for sparse point clouds, whereas SGM is for dense. SGM will only give you point cloud for a given viewpoint so you’ll have to stitch them together yourself.