Python scripts to perform monocular depth estimation using Python with the Midas v2.1 small Tensorflow Lite model. Tested on Windows 10, Tensorflow 2.4.0 (Python 3.8).
pip install numpy opencv-python tflite tensorflow
pip install pafy youtube-dl
Image inference:
python imageDepthEstimation.py
python webcamDepthEstimation.py
python videoDepthEstimation.py
Original video: https://youtu.be/TGadVbd-C-E (by Nagasaki Biopark)