Author: Chuen
Check out the TriCount app
-
Upload an image.
-
Adjust the options to find suitable values for your purposes.
- See examples
- Use images taken from the same height (object should be similar size) and lighting (avoid shadows).
- Adjust "Size of beetles" first to find a reasonable count. Then, alter "Distance between beetles" to find the best reading.
- If both steps 1 and 2 were followed but still not working, go to "Advanced Options", try changing "Threshold".
- If all above fails, reach out to me.
git clone https://github.com/Chuen-Lee/TriCount.git
cd TriCount
You will need to pre-install miniconda
conda env create -f scripts/TriCountenv.yml
conda activate tricount
python3 scripts/TriCount.py -i {inputfile} -o {outputfile}
Images used can be found in demo_images TriCount
Upload image 10.jpg to TriCount app
python3 scripts/TriCount.py -i demo_images/10.jpg -o demo_images/output/10_exampleA.png
Upload image 28.jpg to 28.jpg TriCount app
python3 scripts/TriCount.py -i demo_images/28.jpg -o demo_images/output/28_exampleB.png
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.
A huge thanks to George West for providing images of beetles for testing and development. Thanks to all that have helped test the app.