Skip to content

systemsecologygroup/AMT

 
 

Repository files navigation

AMT

Automatic measurements of Physical Traits of Fish.

The image should have a black background and good quality. The name of the picture should contain the TL (Total Lenght in physical dimensions, cm, in, etc.) of the fish, with the tag "TL". With that number, the software computes the transformation from pixels to cm, inches, etc. If an error occurs, the distances will be shown in pixels. example of correctly formatted picture name: S schlegeli 15.7 SL-18.8 TL.jpg

Advanced project 2

Create a Python software to automatically measure fish's traits giving a photo.

  • see_mee_demo.ipynb: jupyter notebook with a demo
  • AMT.py: isolated python script to measure fish's traits
  • auxiliar/helper.py: python script with the basic functions for image processing.
  • auxiliar/classes: folder with auxiliar classes.
  • report_ml_*: folder with machine learning reports
  • report.pdf: theoretical summary

Requeriments.

(Python 3.7). To setup (Tested on ubuntu 16):

  • clone the repository
  • Install anaconda.
    • On terminal:
  • conda create -n AMT python=3.7
  • conda activate AMT
  • on ubuntu: conda install -c conda-forge xgboost==0.90. on Windows conda install -c anaconda py-xgboost==0.90
  • pip install scikit-learn==0.21.3
  • pip install pandas==0.24.2
  • pip install matplotlib==3.1.0
  • conda install -c conda-forge opencv==3.4.2

Requeriments by txt file (Only on ubuntu)

Use conda create --name AMT --file requirements.txt

To use:

remember to place the pictures you would like analize in images folder.

Run AMT.py example terminal:

conda activate AMT

python AMT.py 'S quoyi 12.3 SL-15.2 TL.jpg' yes True

python AMT.py 'S quoyi 12.3 SL-15.2 TL.jpg' no False

The first parameter (yes/no) activates or deactivates the fin detection, this speeds up the process greatly

The second parameter (True/False) changes the eye detection selection, try both if the eye is not detected

The image should be place in the "./image/" folder

See the demostration on see_me_demo.html

About

Image-recognition type algorithm for extracting morphological trait data from fish photographs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 63.9%
  • HTML 35.5%
  • Python 0.6%