nx_ocr_assemble.nx
buildroot/runtime/nx_ocr_assemble.nx
about
nx_ocr_assemble.nx -- R5 of the sovereign scanning stack: recognized glyphs -> text. Groups glyphs into lines by
vertical overlap, orders each line left-to-right, inserts a space where the horizontal gap is wide, and breaks
lines top-to-bottom -> a plain text string. That text is what feeds nx_money_ledger extraction -> money-OS,
closing the loop: scanned document -> recognized text -> the money system. Integer-exact, zero deps. Each glyph
is [minx, miny, maxx, maxy, char]. license_tier: ORIGINAL
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_ocr_assemble_gate.nx
structs
| none |
consts
| 8 | const GLYPH_MINX: i64 = 0 |
| 9 | const GLYPH_MINY: i64 = 1 |
| 10 | const GLYPH_MAXX: i64 = 2 |
| 11 | const GLYPH_MAXY: i64 = 3 |
| 12 | const GLYPH_CHAR: i64 = 4 |
| 13 | const GLYPH_FIELDS: i64 = 5 |
functions
| 16 | func asm_assemble(glyphs: *i64, ng: i64, space_gap: i64, out: *u8) -> i64 |