Skip to content
madscience

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

StandingClaimNumberSetDate
HoldsGiven the finder's corners, the column counter is never wrong and sure about a fully visible abacus. 0 of 211Held-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
HoldsGiven the finder's corners, the counter gives the right number of columns for a fully visible abacus of 3 to 21 columns. 208 of 211 (98.6 %)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
HoldsThe counter places each column's slot to within a fraction of a millimetre. 0.15 mmHeld-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 metWith the finder's corners and the counter's slots, the whole chain gets the whole number right on clear pictures. 156 of 171 (91.2 %), target at least 99 %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

FileSizesha256
.gitattributes1.5 KB371d6b00b60e
LICENSE11 KBcfc7749b96f6
README.md8.0 KB3eb11f7e50c6
group1-shard1of1.bin11 MBd961e66e79fa
keras/column-counter-c1.keras34 MBcf3e8c12e92a
model.json53 KB2a179e0ff7de

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.

Loading deployment info...