Skip to content

TorioCrema/fin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The notebook and scripts in this repo utilize Grounded SAM (GroundingDINO + SAM) to segment images of dolphins and use the dorsal fin to find which photos have the same dolphin.

Installation

Create a pyhton virtual environment (>= 3.11) and run

pip3 install -r ./requirements.txt

If this fails install the GroundingDINO repo by hand from here.

Usage

The first step is processing the images to obtain the masks of the dorsal fins, to do so run batch_process.py, make sure to modify the variables that contain the path to the image and mask directories.

Then, if you wish to match the images with SIFT run the generate_keypoints.py script, this will extract the keypoints from each image and serialize them.

To look for matches between the images use the mathc.ipynb notebook.

About

Dorsal fin segmentation and matching with Grounded SAM and SIFT / Hu-moments

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published