Sources and licenses
Heapcount counts on your phone with an open source counting model, with our own processing on top. Here is what the app builds on, with the licenses. The full list with all license texts is also in the app, under About, Open source licenses. The sources are listed as their makers name them.
The counting model
Heapcount counts with GeCo2, a counting model that is open source under the MIT license. GeCo2 builds on the image encoder of SAM 2 by Meta, under the Apache 2.0 license. The ONNX export and the smaller int8 version of the model that the app uses come from the open source app how many?, under the MIT license, and the steps that prepare a photo for the model and read out its result follow their code. The model is inside the app and runs on your phone; nothing is sent anywhere.
- Jer Pelhan, Alan Lukežič, Matej Kristan, GeCo2, MIT License
- Meta, SAM 2 (Segment Anything Model 2), image encoder, Apache License 2.0
- EiSiMo, how many?, ONNX export and int8 version of GeCo2 (model-v3), MIT License
Libraries in the app
Heapcount uses these libraries, under their licenses. There is no code for ads or analytics in the app.
- ONNX Runtime, Microsoft, MIT License
- AndroidX, Jetpack Compose, CameraX, Google, Apache License 2.0
- Kotlin, kotlinx, JetBrains, Apache License 2.0
- Google Play Billing Library, Google, Android Software Development Kit License
- Material Symbols, Google, Apache License 2.0
What we made ourselves
- Our own processing on top of that, which turns the result of the model into numbered dots in reading order: written by us.
- Fixing dots, the counting area, the types, saving, the PDF report and the CSV export: written by us.
- The icon and the pictures on this website: drawn by us.
Something not right? Write to heapcount@h4it.nl, and tell us what you expected.