Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Fanfulla/OCR-buddy
/ functions
Functions
163 in github.com/Fanfulla/OCR-buddy
⨍
Functions
163
◇
Types & classes
30
↓ 1 callers
Function
getTokenizer
()
src/offscreen/formula.ts:78
↓ 1 callers
Function
groupLines
(boxes, lineH)
scripts/ocr-image-test.mjs:81
↓ 1 callers
Function
groupLines
(boxes, lineH)
scripts/ocr-bench.mjs:72
↓ 1 callers
Function
groupReadingOrder
* Reading order, column-aware. Cluster boxes into columns by gaps in horizontal * coverage wider than a gutter threshold, then read each column top-t
src/offscreen/engine.ts:309
↓ 1 callers
Function
groupReadingOrder
(boxes)
scripts/ocr-image-test.mjs:92
↓ 1 callers
Function
groupReadingOrder
(boxes)
scripts/ocr-bench.mjs:83
↓ 1 callers
Function
histSnippet
One-line preview of what an entry produced.
src/sidepanel/sidepanel.ts:688
↓ 1 callers
Function
htmlToMarkdown
(html: string, title: string, url: string, ocrBySrc?: Map<string, string>)
src/sidepanel/html-to-markdown.ts:69
↓ 1 callers
Function
indentOf
(r: Row)
src/offscreen/engine.ts:394
↓ 1 callers
Function
initBadge
()
src/sidepanel/sidepanel.ts:398
↓ 1 callers
Function
injectOverlay
Inject the overlay on demand. There is no declared content script (that would * cost the all-sites install warning); the overlay is built to this fix
src/background/service-worker.ts:165
↓ 1 callers
Function
latinFold
(id: string)
src/offscreen/packs.ts:64
↓ 1 callers
Function
levenshtein
(a, b)
scripts/ocr-image-test.mjs:131
↓ 1 callers
Function
levenshtein
(a, b)
scripts/ocr-bench.mjs:128
↓ 1 callers
Function
loadRecognition
( id: string, onProgress?: (p: number) => void, )
src/offscreen/packs.ts:110
↓ 1 callers
Function
main
()
src/testbed/testbed.ts:19
↓ 1 callers
Function
markRated
()
src/sidepanel/review.ts:74
↓ 1 callers
Function
markUnreadGlyphs
* Mark glyphs the recognizer couldn't read so they don't silently vanish. An emoji * gets no detection box — it leaves a wide gap between two text bo
src/offscreen/engine.ts:252
↓ 1 callers
Function
maybeShowNudge
Count a fresh successful capture; show the nudge if it crossed the threshold.
src/sidepanel/sidepanel.ts:842
↓ 1 callers
Function
norm
(s: string)
src/background/merge-tiles.ts:20
↓ 1 callers
Function
norm
(s: string)
src/testbed/testbed.ts:16
↓ 1 callers
Function
ocrDataUrl
(imageDataUrl: string)
src/sidepanel/sidepanel.ts:756
↓ 1 callers
Function
openReviewPage
()
src/sidepanel/review.ts:68
↓ 1 callers
Function
originOf
Best-effort tab origin (empty if we can't read it without permission).
src/background/service-worker.ts:180
↓ 1 callers
Function
packPaths
Local rec+dict paths for a pack, downloading to .packs-cache/ once.
scripts/ocr-image-test.mjs:56
↓ 1 callers
Function
prepareImage
Decode + smart-upscale small crops. Returns the recognition canvas plus a * snapshot of the ORIGINAL colour pixels (before the contrast boost greysc
src/offscreen/engine.ts:153
↓ 1 callers
Function
preprocess
(crop: ImageBitmap)
src/offscreen/formula.ts:104
↓ 1 callers
Function
proseFromLines
(lines, fold)
scripts/ocr-image-test.mjs:111
↓ 1 callers
Function
proseFromLines
(lines)
scripts/ocr-bench.mjs:107
↓ 1 callers
Function
recognizeFormula
(crop: ImageBitmap)
src/offscreen/formula.ts:124
↓ 1 callers
Function
recognizeFormulaImage
( imageBuffer: ArrayBuffer, )
src/offscreen/engine.ts:598
↓ 1 callers
Function
recognizeTableImage
( imageBuffer: ArrayBuffer, lang: string = DEFAULT_PACK, onProgress?: (p: number) => void, )
src/offscreen/engine.ts:580
↓ 1 callers
Function
reconstructTable
* Reconstruct a Markdown table from a table region's OCR word boxes: cluster into * rows by y, find columns from the x coverage profile (gutters = x-
src/offscreen/engine.ts:474
↓ 1 callers
Function
recordSuccessAndMaybeNudge
()
src/sidepanel/review.ts:56
↓ 1 callers
Function
renderDocBlocks
Render Table-mode blocks: the reconstructed grid as a real table, or a plain * paragraph when the crop wasn't grid-like.
src/sidepanel/sidepanel.ts:515
↓ 1 callers
Function
renderFormula
Formula mode: render the LaTeX with KaTeX in the text area; the source crop is * already shown above (Source · captured region), giving the side-by-
src/sidepanel/sidepanel.ts:554
↓ 1 callers
Function
renderMarkdownTable
(markdown: string)
src/sidepanel/sidepanel.ts:530
↓ 1 callers
Function
restorePrefs
()
src/sidepanel/sidepanel.ts:77
↓ 1 callers
Function
run
(req: RunOcr)
src/offscreen/offscreen.ts:33
↓ 1 callers
Function
runImages
Page → Markdown hybrid: OCR a batch of page images; texts come back * index-aligned with the request (empty string where nothing was read).
src/offscreen/offscreen.ts:19
↓ 1 callers
Function
runTiles
(req: RunOcrTiles)
src/offscreen/offscreen.ts:108
↓ 1 callers
Function
saveToHistory
(r: OcrResult)
src/sidepanel/sidepanel.ts:674
↓ 1 callers
Function
seamCut
Index in `b` from which to start appending: drops b[0 .. idx-1] (a leading * header plus the overlap that duplicates the tail of `a`). 0 = append al
src/background/merge-tiles.ts:24
↓ 1 callers
Function
serviceFor
(langId)
scripts/ocr-image-test.mjs:145
↓ 1 callers
Function
showOverlay
()
src/content/overlay.ts:22
↓ 1 callers
Function
showStage
(stage: Exclude<OcrStage, 'error'>, progress?: number)
src/sidepanel/sidepanel.ts:184
↓ 1 callers
Function
startActiveTabSelectionWithLastMode
()
src/background/service-worker.ts:123
↓ 1 callers
Function
toCodeText
* Code view: prose lines + leading indentation, with blank lines restored. Indent * is quantized — detect the one-level unit (smallest clear positive
src/offscreen/engine.ts:389
Function
closeBundle
()
vite.config.ts:21
Function
esc
(s: string)
src/offscreen/engine.ts:568
Function
hasText
(w: RecognitionResult)
src/offscreen/engine.ts:187
Function
hasText
(w)
scripts/ocr-image-test.mjs:79
Function
hasText
(w)
scripts/ocr-bench.mjs:64
Function
leadingSpaces
(s: string)
src/testbed/testbed.ts:17
Function
onDownload
(p: number)
src/offscreen/offscreen.ts:40
Function
onKey
(e: KeyboardEvent)
src/content/overlay.ts:77
Function
onMsg
(r)
scripts/verify-realpage.mjs:55
Function
onMsg
(r)
scripts/verify-capture-sources.mjs:85
Function
onNudgeRate
()
src/sidepanel/sidepanel.ts:831
Function
pick
(page)
scripts/fetch-test-images.mjs:31
Function
readMetrics
()
src/background/fullpage.ts:24
Function
scrollPage
(y: number)
src/background/fullpage.ts:32
Function
startSelection
()
src/sidepanel/sidepanel.ts:201
← previous
101–163 of 163, ranked by callers