Skip to content

Chuen-Lee/TriCount

Repository files navigation

Author: Chuen

Counting beetles made easy with TriCount

Check out the TriCount app

  1. Upload an image.

  2. Adjust the options to find suitable values for your purposes.

Demo_options

  1. See examples

A few tips

  1. Use images taken from the same height (object should be similar size) and lighting (avoid shadows).
  2. Adjust "Size of beetles" first to find a reasonable count. Then, alter "Distance between beetles" to find the best reading.
  3. If both steps 1 and 2 were followed but still not working, go to "Advanced Options", try changing "Threshold".
  4. If all above fails, reach out to me.

Alternatively, use the python code. Quick Start Guide:

clone this github repo:

git clone https://github.com/Chuen-Lee/TriCount.git
cd TriCount

Copy the environment:

You will need to pre-install miniconda

conda env create -f scripts/TriCountenv.yml
conda activate tricount

Usage:

python3 scripts/TriCount.py -i {inputfile} -o {outputfile}

Examples

Images used can be found in demo_images TriCount

Example A - 10 Beetles

Upload image 10.jpg to TriCount app

Demo_upload

python3 scripts/TriCount.py -i demo_images/10.jpg -o demo_images/output/10_exampleA.png

Example B - 28 Beetles

Upload image 28.jpg to 28.jpg TriCount app

Demo_upload

python3 scripts/TriCount.py -i demo_images/28.jpg -o demo_images/output/28_exampleB.png

LICENSE

Copyright (c) 2022 Chuen Zhang Lee

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Citation:

Acknowledgement:

A huge thanks to George West for providing images of beetles for testing and development. Thanks to all that have helped test the app.

Chuen's Logo

About

Counting beetles made easy with TriCount

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published