Model · Abacus camera reader ·
abacus-column-counter
A network that looks at a straightened picture of an Abacus Studio abacus and says how many columns it has, from 3 to 21, and where each column's slot is, or "not sure".
Pinned at
- Hugging Face
- thomashallock/abacus-column-counter at
ca9b53c - Licence
- Apache-2.0
- Runtime
- TensorFlow.js
- Task
- Column count (3 to 21) and slot positions, with refusal
Contract
- Input
- (N, 96, 384, 3), 0 to 255. The frame straightened from its four corners, with 20 mm of margin at the sides and 12 mm above and below. The app feeds the channels in BGR order, and the lab reads a coloured drawing digit for digit that way; the published card says RGB.
- Output
- (N, 212) logits: 192 slot heat-map bins and 20 count classes (3 to 21 columns, and "can't count"). A count is given only at probability 0.95 or more with exactly that many peaks.
Real data
- Trained on real data
- No
- Selected on real data
- No
- Measured on real data
- No
No real picture trained this model, chose its read-out rule or scored it. The author's own trial on his own prints decided whether it went into the app.
Base model
None
Findings measured on it
| Standing | Claim | Number | Set | Date |
|---|---|---|---|---|
| Holds | Given the finder's corners, the column counter is never wrong and sure about a fully visible abacus. | 0 of 211 | Held-back renders, 211Studio renders, held-back test400 pictures drawn like the training set (382 with an abacus) and 600 with no abacus. Never read by anything until it was scored once.Held-back | |
| Holds | Given the finder's corners, the counter gives the right number of columns for a fully visible abacus of 3 to 21 columns. | Held-back renders, 211Studio renders, held-back test400 pictures drawn like the training set (382 with an abacus) and 600 with no abacus. Never read by anything until it was scored once.Held-back | ||
| Holds | The counter places each column's slot to within a fraction of a millimetre. | 0.15 mm | Held-back renders, 1,961 slotsStudio renders, held-back test400 pictures drawn like the training set (382 with an abacus) and 600 with no abacus. Never read by anything until it was scored once.Held-back | |
| Target not met | With the finder's corners and the counter's slots, the whole chain gets the whole number right on clear pictures. | Held-back renders, 171Studio renders, held-back test400 pictures drawn like the training set (382 with an abacus) and 600 with no abacus. Never read by anything until it was scored once.Held-back |
Files
| File | Size | sha256 |
|---|---|---|
.gitattributes | 1.5 KB | 371d6b00b60e |
LICENSE | 11 KB | cfc7749b96f6 |
README.md | 8.0 KB | 3eb11f7e50c6 |
group1-shard1of1.bin | 11 MB | d961e66e79fa |
keras/column-counter-c1.keras | 34 MB | cf3e8c12e92a |
model.json | 53 KB | 2a179e0ff7de |
Labs that use it
- Abacus reader
Three small networks find a drawn abacus, count its columns and read each one, in your browser, and refuse a column they cannot see.
Publications
The second stage. Before it, the app assumed every abacus had the number of columns in the user's settings and cut it into equal strips; with it, any Studio print is cut on its real slots. The slot positions matter as much as the count, because the reader's cut is centred on them.