Wildlife TechTutorial

Monocular wildlife depth estimation - with code

Open-source monocular depth estimation for wildlife images: measure animal distances with MegaDetector & Depth Anything, free GitHub tool for conservationists.

Hugo Markoff
Hugo Markoff
Monocular wildlife depth estimation - with code

πˆπ­β€™π¬ 𝐦𝐲 π›π’π«π­π‘ππšπ²! What better way to celebrate than by giving something which may be used by wildlife conservation community? πŸ¦‰πŸŒΏ

Over the weekend, I put together some code to estimate the distance to an animal in wildlife images. You can check it out here:

πŸ‘‰ GitHub Repo: https://lnkd.in/d3PN_yPa

While this is my first public GitHub repository, it’s far from my first time writing code! I hope this tool proves useful to researchers, conservationists, and fellow tech enthusiasts.


πŸ”Ή 𝐇𝐨𝐰 𝐝𝐨𝐞𝐬 𝐒𝐭 𝐰𝐨𝐫𝐀?

1️⃣ Clone or download the repository.

2️⃣ Follow the steps in the README (start a virtual environment, install requirements, and run the program).

3️⃣ The first time you run it, the models should download automatically.

4️⃣ When an image appears, click anywhere to set the β€œknown” distance.

5️⃣ MegaDetector finds the most confident animal detection. 🦊

6️⃣ Depth Anything generates a depth map.

7️⃣ Check the results folder for the output!

πŸ“‚ Want to try with your own images? Just drop them into the β€œTestImage” folder and run the program again.

If you missed my article on depth estimation in wildlife earlier this week, you can find it here: https://lnkd.in/dVPYwGvw

Hugo Markoff

About Hugo Markoff

Co-founder of Animal Detect, the dog man.

Want to try Animal Detect?

Start now