Abaci OneScreen time that builds real math skills
←Back to Blog
Counting and Reading the Columns of a 3D-Printed Abacus: A Technical Report

Counting and Reading the Columns of a 3D-Printed Abacus: A Technical Report

The method, data and results behind teaching our camera reader to count the columns of an Abacus Studio print (3 to 21 columns), cut each column on its own slot, and read it. Measured on rendered drawings; the reader does not yet meet its target.

Abaci.one Team•
visionmachine-learningphysical-abacusabacus-studioresearch

This is the companion report to Teaching the Camera to Count Columns, which tells the same story with fewer numbers. Background on the camera reader itself is in our January post.

Abstract

Abaci.one reads a physical abacus through a phone camera. Our Abacus Studio prints abaci from 3 to 21 columns wide, but the camera pipeline assumed the layout of a 4-column print: it straightened every frame to a fixed 300 × 400 picture, split it into equal strips, and read each strip with a classifier trained only on 4-column cuts.

We replaced that with a chain that (1) counts the columns with a small convolutional network working on the straightened frame, (2) re-straightens the frame at the abacus's true shape for that count, and (3) cuts a fixed-size window centred on each column's slot, which (4) a retrained column reader reads.

All results are measured on rendered drawings, never on photographs:

  • Counting. On 210 full-view check drawings, the counter is right on 210 of 210 from exact corners. From the marker-free frame finder's corners it is right on 207, says "not sure" on 3, and is never wrong and sure. The same drawings were used to choose its settings.
  • Reading. On 1,298 unseen drawings with no column covered, from exact corners, whole numbers read right rise from 67.3 % to 93.2 %, and wrong numbers shown fall from 125 to 26. Across all 2,424 unseen drawings, covered ones included, a reader that learned to refuse covered columns shows 60 wrong numbers, against 284 before.
  • Target. The target was at least 99 % of whole numbers right, with at most 1 wrong number accepted in 300, at 3, 4, 9 and 10 columns. It is not met: from exact corners the reader reaches it at 3 columns only, and with corners shaken the way the finder can be off, not even there (96 % at 3 columns).

The marker-free finder is live in the app. The counting and slot-cut chain is being tried at home on our own printed abaci and is not yet switched on for anyone else.

1. Setting

1.1 The Studio abacus

The geometry below is measured on the frame's top face, in millimetres. The four reference points are the centres of the marker positions, 7 mm in from both outer edges, whether or not markers are printed. We call the rectangle through them the quad, with its corners ordered top-left, top-right, bottom-right, bottom-left, heaven side on top.

For an abacus with n columns:

  • quad width: W(n) = 22.5 + 13 (n − 1) mm
  • quad depth: D = 86.5 mm at every count
  • slot k (k = 0 … n − 1) sits at 11.25 + 13k mm from the quad's left edge

So W runs from 48.5 mm at 3 columns to 282.5 mm at 21. Neighbouring counts differ in width by 13 mm, which is about 10 % of the width at mid-range counts.

1.2 The previous pipeline

  • The quad was warped to a fixed 300 × 400 picture. At 4 columns each column gets about 72 px of width; at 10 columns, about 29 px.
  • Columns were cut by splitting the space between 2 % margins into n equal strips. At 4 columns this puts the outer windows about 2.5–2.7 mm off their slots, because the slots are not evenly spread across the quad: the end slots are 11.25 mm from the edges, while the slots are 13 mm apart.
  • Each strip was turned grey, shrunk to 64 × 128, and read by a column classifier. The classifier has a heaven head (is the heaven bead set?), an earth head (how many earth beads, 0–4) and a gate ("is this a readable column?"). Its confidence is √(|pheaven − 0.5| · 2 · max pearth), and a frame is used only when every column's confidence is at least 0.5. This floor is what the live feed applies.
  • That reader had been trained only on 4-column cuts.

2. Data

All training and scoring uses rendered drawings of the Studio abacus. No photograph was used for training, tuning or scoring.

  • Rendering. Blender draws the Studio abacus from parts exported from the same OpenSCAD design the Studio prints, at every count from 3 to 21. Sixty percent of pictures are at 3, 4, 9 or 10 columns (15 % each); the other 15 counts share the remaining 40 % evenly.
  • Variants. A third each: printed markers, plain, or decorated (text on the frame's text rails, or stickers on its border).
  • Digits. Each column gets a random digit. Beads sit anywhere in their travel, but the gap between counted and uncounted beads is always the largest, at least 60 % of the free travel, so the digit is never ambiguous.
  • Scenes. 15 desk kinds with clutter. 30 % of pictures have a pen, ruler, card or cable lying over the abacus, and 30 % have a hand. Lamps, sun, 20 % phone flash and cast shadows; a phone-like develop step.
  • Camera. A simulated phone on a stand, 720 × 1280 portrait. In the working regime (85 % of pictures), the camera is tilted 0–45° from straight down, the whole abacus is in view, and its long side is at least a third of the picture's width. The abacus is turned any way in the picture: heaven up 40 %, heaven down 12 %, sideways 30 %, any angle 18 %. The remaining 15 % are steep, partial or small views, 5 % each.
  • Labels. Every picture carries exact labels from the render pose: the quad corners and which of them are hidden, the column count, each slot's centre line and how much of it is covered, the bead positions and the digits.
  • Checks. Every label re-projects to within 0.01 px. A homography from the quad alone puts the slots back on the layout to within 0.05 mm. OpenCV's ArUco detector finds the drawn markers exactly where they are labelled. Contact sheets were reviewed by eye.
Set With an abacus Without Used for
Training 14,242 3,750 training; pictures 12,000–14,999 are kept back as an unseen scoring slice for the reader
Check 381 419 choosing every setting and threshold
Held back 400 drawn; not read not read scored once, at the end

Counts for the training and check sets are from their labels. About 5 % of the main drawings are desk and clutter with no abacus, by design; the rest of "without" are separate no-abacus sets. Training also has 8 drawings set aside for broken labels. The held-back set's size is the number drawn; its pictures and labels have not been opened.

Two subsets are used throughout:

  • The check set's working pictures: 322 with an abacus. Of these, 210 have all four corners in view, and 171 have no slot covered.
  • The unseen slice: training pictures 12,000–14,999 in the working regime, 2,424 pictures. Of these, 1,298 have no slot covered or out of the picture; we call them "clear". The retrained reader never saw this slice. The previous reader never saw any picture from this drawing set.

3. Finding the frame (live)

The marker-free finder that supplies the corners has its own write-up, so here is only what matters for this report:

  • Two stages. A whole-picture network (input 192 × 320) predicts four separately named corner heatmaps and an "abacus here" score. Naming each corner lets the network itself learn which side is heaven.
  • Refinement. A 64 × 64 close-up network then moves each corner, in two passes.
  • Accuracy on the check set:
    • all four corners in view: 203 of 210 (96.7 %) found with the corners in the right order and the worst corner within 3 % of the width;
    • a corner hidden: 33 of 112;
    • no abacus in the picture: 408 of 419 (97.4 %) correctly reported.
  • Corner error. On full-view pictures the per-corner error is about 0.4 mm (standard deviation), about 2 mm at the 99th percentile, and at most 5 mm. This is the error the counter and the reader are trained to tolerate (§§4.3, 6.2).

4. Counting the columns

4.1 A first try without a network

We first tried a plain approach. Straighten the frame, then for each count from 3 to 21 measure how strongly its predicted slot pattern shows across the frame, and take the strongest. Scored on the 210 full-view check pictures:

Method From exact corners From finder corners (frame found)
Slot pattern alone 184 / 210 (88 %) 177 / 203 (87 %)
Rough picture-space shape, then the slot pattern 188 / 210 183 / 203
True shape, then the slot pattern 210 / 210 187 / 203 (92 %)
True shape alone 210 / 210 164 / 203

It fell short for two reasons:

  • The slot pattern confuses n with about 2n + 1. The slots for 2n + 1 columns fall on the points halfway between n's slots. The misses went 9→19, 10→21, 4→9 and 3→6 or 7.
  • The finder's corners are too loose to pin down the shape. The true shape (width over depth) is recovered from the four corners under perspective. With the finder's corners, the estimate runs from 0.94 to 1.16 times the true value between the 5th and 95th percentiles of pictures, but neighbouring counts differ by only about 10 %. The same corner error also shifts the slot pattern by up to half a slot at 21 columns.

4.2 The counter network (c1)

The counter's 96 × 384 input, shown at twice the size, with ten slot marks and the slot heatmap below
Figure 1. The counter's input (96 × 384, shown at 2×) for a 10-column check drawing. The yellow lines are the heatmap peaks; the curve below is the slot heatmap, with a grey line at 0.5.

Input. The frame is straightened from the four corners onto a 96 × 384 canvas:

  • The quad's width spans the middle of the canvas, with an estimated 20 mm of margin on each side and 12 mm above and below, so the frame's outer edges (7 mm beyond the quad) show even when the corners are a few millimetres off.
  • The vertical scale comes from the quad's depth, 86.5 mm at every count.
  • The horizontal scale comes from the corners' estimated true shape (Zhang and He's rectangle method, with the principal point at the picture's centre). If no focal length can be solved, it falls back to the picture-space ratio.
  • A large abacus is shrunk with area averaging before the warp, so it doesn't alias.

Network. 2.9 M parameters, built only from standard layers so it converts to TensorFlow.js:

  • a five-level convolutional encoder (stride 32);
  • a U-Net path back up to stride 2, averaged over the height into a 192-bin slot heatmap along the width;
  • a count head: flattened deep features and width profiles → dense 256 → 20 logits, for counts 3–21 and "can't count".

Peak-finding and the slot fit are done outside the network, in plain code.

Read-out rule (chosen on the check set):

  • A count is given only when the count head's top class is a count with p ≥ 0.95, AND the heatmap has exactly that many peaks ≥ 0.5.
  • Otherwise the counter says "not sure", and the app uses the user's column setting.
  • The two checks are independent. On the check set, the count head alone at p ≥ 0.9 scores the same. However, the three finder failures had count-head confidences of 0.50, 0.83 and 0.88, against 0.97 for the lowest right answer, so a looser single threshold would have let two of them through as confident and wrong.

Slot positions for cutting. When the heatmap has exactly n peaks, an evenly spaced row is fitted to them. Otherwise the corners' own layout is shifted by the median offset to the nearest peaks.

4.3 Training

  • Pictures. 13,577 training drawings (training set plus a small pilot set) with all four quad corners inside the picture. Hidden corners are allowed. Counts are sampled with weight count−0.7, so the 15 rarer counts aren't drowned out by 3, 4, 9 and 10.
  • Corner shake. The true corners are perturbed in the abacus's own millimetres, to match the finder's measured error: a shared shift plus each corner's own offset. The standard deviation is drawn from 0.1–0.8 mm (60 % of samples), 0.8–2.5 mm (30 %) or 2.5–7 mm (10 %).
  • Other augmentation.
    • The margin's scale is jittered by 6 %.
    • Half the samples are mirrored left-right, with the slots mirrored too.
    • Light, colour, grey, blur, noise and JPEG changes are applied.
  • "Can't count" examples. 6 % of samples have their corners turned a quarter, and any sample whose frame end falls off the canvas is also labelled "can't count".
  • Loss. 20 × mean binary cross-entropy on the heatmap (Gaussian targets, σ = 1 bin), plus cross-entropy on the count.
  • Optimiser. AdamW at 2 × 10−3, cosine schedule, batch 64.
  • Schedule. 40 rounds × 400 steps, 67 minutes on a desktop PC with a GPU (Keras 3 on the PyTorch backend).
Counter training loss over 40 rounds, falling from about 6.9 to about 2.8
Figure 2. The counter's training loss per round (heatmap and count terms combined).

4.4 Results

Scored on the check set's 210 full-view working pictures:

Corners used Right Wrong and sure Not sure
Exact 210 / 210 0 0
From the finder 207 / 210 0 3
From the finder, frame found (≤ 3 %) 203 / 203 0 0
  • The three "not sure" cases are the finder's own failures, with corners 11.5 %, 23 % and 122 % of the width off.
  • By count, from finder corners, every count is 100 % except 9 (26/27), 14 (4/5) and 20 (7/8). Each of those misses is one of the three finder failures.
  • Slot placement, from finder corners (1,912 slots of right counts): median error 0.16 mm, 95th percentile 0.43 mm, 99th 0.73 mm, worst 0.97 mm. Placing the slots from the corners alone is worse: 99th percentile 1.69 mm, worst 2.48 mm.
  • Over all 322 working check pictures, hidden corners included, the end-to-end run (§6.4) has the counter "not sure" on 33 and wrong-and-sure on 1: a 10-column abacus with two corners hidden, counted as 9.
Counter view of a 10-column abacus with a card over part of it; ten peaks but the count head is not sure
Figure 3a. A card over a 10-column abacus. The heatmap has the right ten peaks, but the count head's top class is "can't count" at 0.53, so the read-out says "not sure".
Counter view of a 10-column abacus with two corners hidden, nine peaks, counted as 9
Figure 3b. The one wrong-and-sure count: two corners hidden, nine peaks, count 9 at p ≈ 1.00. Both checks agree, so the rule can't catch it.

Caveats. Every counter setting was chosen on the check set, and the scores above come from that same set. The held-back set will give the honest score. The check set has only 2–8 pictures at each of counts 5–8 and 11–21, so "99 % at every count" can't be shown on it.

5. The slot cut

Annotated slot canvas at 4 columns: the quad in blue, slot centre lines in yellow, the 72 × 384 windows in green
Figure 4. The slot canvas at 4 columns (shown at 2×, darkened). Blue: the quad. Yellow: slot centres at 11.25 + 13k mm. Green: the 72 × 384 px windows. Neighbouring windows overlap, because 14.76 mm is wider than the 13 mm slot pitch.

The cut needs only the four corners and the count n.

  1. Homography. Map the millimetre rectangle (0, 0), (W, 0), (W, 86.5), (0, 86.5), with W = 22.5 + 13(n − 1), onto the four corners.

  2. Canvas. Warp onto a canvas at a fixed scale:

    • Sx = 300 / 61.5 ≈ 4.878 px/mm across and Sy = 400 / 86.5 ≈ 4.624 px/mm down, the previous pipeline's scale at 4 columns;
    • a 1 mm pad on every side, so canvas pixel (i, j) samples quad position (i / Sx − 1, j / Sy − 1) mm;
    • bilinear sampling, with edge pixels repeated beyond the picture.

    The canvas therefore grows with n: 310 × 410 px at 4 columns, 1,388 × 410 px at 21. The phone sends it as a JPEG at quality 0.8.

  3. Windows. For each slot k, cut a 72 × 384 px window (14.76 × 83.04 mm) centred on the slot. Its rows run from 1.73 to 84.77 mm of the quad's depth, so the top edge is at canvas row 13. The left edge is at round((11.25 + 13k + 1) · Sx − 35.5).

  4. Reader input. Convert to grey (0.299 R + 0.587 G + 0.114 B, rounded) and shrink to 64 × 128 with area averaging, the reader's input as before.

At 4 columns this is exactly the previous window (same scale, same 72 × 384 px, same rows), moved onto the slots. Every other count gets the same window, at the same scale, on its own slots.

Top: the old 300 × 400 picture of a 10-column abacus with equal strips in red and the true slots in yellow. Bottom: the slot canvas with a green window on each slot
Figure 5. One 10-column check drawing (exact corners). Top: the previous 300 × 400 straightening and its equal strips (red) against the true slot centres (yellow). Bottom: the slot canvas and its windows.

Choosing the window. The window was chosen on the check set using the previous reader and exact corners, with whole numbers right as the measure. Thirteen windows were tried on the check set; six are shown. Their scores on the check set's 171 clear pictures, then the unseen slice's 1,298 clear pictures:

Window Check (171) Unseen slice (1,298)
Previous equal split 104 783
14.76 mm, centred on the slot (kept) 114 873
January cut (13.0 × 80.16 mm) 94 739
13 mm 107 834
16 mm 119 881
14.76 mm × full depth 111 891

Everything from 14 to 16 mm wide scores within noise. We kept 14.76 mm because it is the window the reader was trained on. Centring by itself is what helps: at 4 columns, where the equal split and the slot cut use windows of the same size, per-column accuracy on the unseen slice's clear pictures goes from 92.5 % to 95.0 %.

6. The column reader

6.1 The previous reader on slot cuts

With no retraining, the previous reader on slot cuts reads 92.2 % of columns right on the 171 clear check pictures. It gets 114 of 171 whole numbers (66.7 %) right and shows 15 wrong ones. On an older held-back set of 300 4-column drawings, from its own training work, it reads 299 of 300. The new drawings are plainly harder for it: more widths, colours, decorations and clutter than it ever saw.

6.2 The retrain

  • Recipe. The previous reader's own training script, unchanged:
    • warm start from the same base model the previous reader started from (not from the previous reader's weights);
    • learning rate 3 × 10−4, 30 epochs;
    • 66,677 slot cuts from training pictures 0–11,999 added as a fourth data source.
  • The new cuts.
    • They cover every count from 3 to 21.
    • They are made through corners shaken like the finder's (§3), with phone-like softening.
  • Time. 94 minutes on a laptop, with three threads.
Validation accuracy of the heaven and earth heads over 30 epochs
Figure 6. Validation accuracy of the heaven head (0.940 → 0.973) and earth head (0.935 → 0.969) over the 30 epochs of the retrain.

6.3 Two gates

The gate decides whether a column picture is a readable column at all. We trained it two ways on the retrained reader:

  • Gate A follows the previous gate's recipe: 124,198 column pictures (including clear slot cuts) and 8,796 non-column pictures, 18 epochs. On its validation pictures it accepts 99.2 % of columns and wrongly accepts 1.7 % of non-columns.
  • Gate B also counts slot cuts whose slot is at least 4/9 covered (by a hand, card or pen) as non-columns. That brings the non-column set to 19,098 pictures; it trained for 26 epochs. It accepts 98.8 % of columns and wrongly accepts 2.7 % of non-columns. Those non-columns now include the hard, partly covered cases.
Eight partly covered column pictures, all refused by gate B
Figure 7. Columns from the unseen slice with at least 30 % of the slot covered, refused by gate B. Gate B refuses 3,075 of the 3,191 columns in the slice that are at least 30 % covered.

6.4 Results

Per column, on the unseen slice's 1,298 clear pictures (11,970 columns), using exact corners:

Reader Columns read right Wrong among accepted
Previous 93.5 % 4.05 % (458 / 11,296)
Retrained, gate A 98.8 % 0.66 % (78 / 11,813)
Retrained, gate B 98.8 % 0.63 % (74 / 11,790)

Whole numbers by count, on the same 1,298 clear pictures. Each cell is right / wrong shown. Pictures not counted in either were withheld as "not sure".

n Pictures Previous Gate A Gate B
3 218 184 / 11 217 / 0 217 / 0
4 181 141 / 13 174 / 4 173 / 3
5 31 23 / 5 28 / 1 28 / 1
6 31 28 / 1 31 / 0 31 / 0
7 42 31 / 5 42 / 0 42 / 0
8 33 27 / 3 33 / 0 33 / 0
9 203 134 / 19 192 / 2 192 / 2
10 186 116 / 28 172 / 7 171 / 7
11 27 12 / 3 24 / 0 24 / 0
12 36 21 / 2 34 / 1 34 / 1
13 23 14 / 2 20 / 3 20 / 3
14 37 23 / 7 35 / 1 35 / 1
15 35 20 / 2 30 / 2 30 / 2
16 41 23 / 5 38 / 0 38 / 0
17 42 18 / 2 38 / 1 36 / 1
18 33 17 / 6 28 / 2 28 / 2
19 36 17 / 4 31 / 2 30 / 1
20 36 15 / 6 29 / 2 29 / 2
21 27 9 / 1 19 / 0 19 / 0
all 1,298 873 / 125 1,215 / 28 1,210 / 26
Bar chart of whole numbers right by column count band for the three readers
Figure 8. Share of whole numbers read right, by count band, on the unseen slice's clear pictures.

All 2,424 unseen pictures, including covered slots (exact corners):

Reader Right Wrong shown Not sure
Previous 998 284 1,142
Retrained, gate A 1,470 249 705
Retrained, gate B 1,354 60 1,010

With shaken corners, clear pictures (1,298). The corners are shaken more widely than the finder's measured error: 10 % of samples at a standard deviation of 2.5–7 mm, against the finder's measured 0.4 mm (at most 5 mm). At 3 columns gate B gets 210 of 218 right with 2 wrong shown (96 %).

Reader Right Wrong shown
Previous 778 140
Gate A 1,130 47
Gate B 1,127 44

End to end on the check set: finder corners, the counter's count (the true count when the counter is not sure), slot cuts and the reader. On the 171–172 clear pictures:

Reader Corners Right Wrong shown
Previous exact 114 / 171 15
Previous finder + counter 111 / 172 21
Gate A exact 157 / 171 7
Gate A finder + counter 156 / 172 4
Gate B exact 157 / 171 6
Gate B finder + counter 156 / 172 3

Finder corners plus the counter's count score about the same as exact corners. Over all 322 working check pictures, with hidden corners and covered slots included, the full chain with gate B gives:

Outcome Pictures
Number right 169
Number wrong 8
Reader not sure 110
Counter not sure 33
Counter wrong 1
Finder found no abacus 1

On the older 4-column held-back drawings, both retrained readers read 300 of 300, so the retrain did not cost the old case anything.

Six check drawings from 3 to 21 columns, each read right end to end
Figure 9. End-to-end reads (finder, counter, slot cut, gate B) on check drawings at 3, 4, 9, 10, 17 and 21 columns.

6.5 The accept floor

On stills, the accept floor (the minimum confidence every column must reach) trades the two halves of the target against each other. For gate A on the unseen slice's clear pictures:

Floor Numbers right Wrong shown (of 1,298)
0.5 (live) 93.6 % 28
0.9 84.4 % 1
0.95 80.7 % 0

This was measured on the scoring slice itself, so it is not a chosen setting. It shows the shape of the trade, nothing more.

7. What fails

A small dim 17-column check drawing read with two wrong digits
Figure 10. A wrong number shown (check set, end to end). The abacus is small and dim, and two columns are misread (red). The true digits are underneath in grey.
Eight single columns read wrong with confidence above the floor
Figure 11. Uncovered columns from the unseen slice that gate B read wrong with confidence above the floor: 135 of 17,493 uncovered columns. These eight come from pictures with no hand or object anywhere on the abacus.

Measured unless marked:

  • Covered slots produce most of the wrong numbers accepted. That is why gate B exists, and why it trades "wrong" for "not sure".
  • Heaven beads partway along their travel.
    • The drawings count a heaven bead as set once its gap is at least 60 % of its free travel, so a set and an unset heaven bead can sit only 2 mm apart.
    • On the previous reader, heaven errors outnumber earth errors on uncovered columns: 858 against 466.
    • Retraining cut wrong heaven reads at 3–4 mm from the bar from 12.9 % to 1.8 %.
  • A small abacus in the picture. On uncovered columns, the retrained reader is wrong on 4.3 % below 20 px per slot, 1.2 % at 20–30 px, 1.1 % at 30–45 px, 0.4 % at 45–70 px and 0.8 % at 70 px and above.
  • Hidden corners.
    • The finder finds the frame in only 33 of 112 check pictures with a corner hidden.
    • The counter's one confident error is on a picture with two corners hidden.
  • Stills versus the app (inferred). The target is per still picture, but the app waits for three frames to agree before it accepts a number, which stills can't measure. One wrong number in 300 at 10 columns implies about 0.03 % wrong per column. That is roughly 20× better than the reader's still-picture rate today.

8. In the app (in testing)

The browser side is built and is being tried at home on our own 4-column prints. Nothing is served to other users yet.

  • The phone.
    • It loads the counter, converted to TensorFlow.js, only when needed.
    • It counts at the quad from the markers or from the finder.
    • A count is taken, or changed, only when two runs in a row agree. It recounts every 300 ms until a count settles, then every 2 s.
    • Once the abacus has moved, two "not sure" runs in a row drop the count, and the user's setting applies again.
    • With a count held, it warps the slot canvas (§5) and sends it with the count. Without one, it sends the previous 300 × 400 frame exactly as before.
  • The laptop. It cuts a counted frame on its slots, for reading and for training capture alike, and shows "N cols · counted".
  • Training capture. Frames cut at corners the finder found are never saved as training pictures, because those corners may be wrong.
  • Matching the Python. We compared the TypeScript port with the Python on 64 check drawings spanning counts 3–21:
    • Slot columns from the same JPEG: 28 of 6,004,736 values differ, each by at most 1.
    • Counts: identical on all 128 corner sets (exact and finder corners).
    • The retrained reader: the same 733 of 733 digits on the TypeScript cut as on the Python one.
  • Cost, in Chromium on a laptop:
    • The counter takes about 11 ms a run on WebGL. The first run spends 4–5 s compiling shaders, and frames go uncounted until then.
    • The slot canvas warp (OpenCV.js warpPerspective, without the JPEG) takes a median 1.4 ms at 4 columns, 3.8 ms at 13 and 5.9 ms at 21, on 64 check drawings. The JS warp it replaced took 6–30 ms.
    • Not yet measured on a phone or in WebKit.

9. Limitations

  • Drawings only. Everything above is measured on rendered drawings, which have no lens distortion and no real lighting quirks. The chain is being tried at home on our own printed abaci, but we have no real-photo scores to report.
  • The check set did double duty. The counter's settings were chosen on the same check set that scores it. The held-back set has not been read yet.
  • Exact corners. The whole-number scores on the unseen slice start from exact corners unless marked; with shaken corners they are lower (§6.4).
  • The unseen slice is not fully held out for gate B. Gate B was built after we saw covered slots fail on that slice, so its scores there, the 60 wrong numbers included, are not a clean held-out result. No pictures leaked: gate B's training cuts come from training pictures 0–11,999 only.
  • Runs vary. Training isn't repeatable from run to run. In earlier work, the same command gave 97.2 % one time and 98.4 % the next. Each number here is one run.
  • Not every count is well sampled. Counts other than 3, 4, 9 and 10 have only 23–42 clear pictures each in the unseen slice.
  • The target is not met. At least 99 % of numbers right with at most 1 wrong in 300 holds only at 3 columns, from exact corners. At 4, 9 and 10 columns it reaches 95.6 %, 94.6 % and 91.9 % right.

10. Next steps

  • How this stage closes. It closes on a docked try with our 4-column prints. The whole-number target at every width becomes its own piece of work, after the 17-column soroban project.
  • The reader. Target heaven beads near the threshold, small abaci and partial cover. Then choose an accept floor on the check set, not on the scoring slice.
  • Real pictures. Score the finder, the counter and the reader on photographs of real prints, named in advance, and keep them apart from the drawing scores.
  • The held-back set. Score once, when the models are final.
  • The 17-column soroban. A standard soroban, often 17 columns wide, is the next project. It needs its own geometry, because the slot pitch and margins above are the Studio's.
Loading deployment info...