MCPcopy Create free account

hub / github.com/Fanfulla/OCR-buddy / functions

Functions163 in github.com/Fanfulla/OCR-buddy

↓ 52 callersFunction$
(id: string)
src/sidepanel/sidepanel.ts:27
↓ 21 callersFunctionlog
(s = '')
src/testbed/testbed.ts:11
↓ 19 callersFunctionpost
(msg: OcrStatus | OcrResult | PageImagesOcr)
src/offscreen/offscreen.ts:13
↓ 19 callersFunctionsetState
(s: State)
src/sidepanel/sidepanel.ts:143
↓ 18 callersFunctionrestrictedReason
(url: string | undefined | null)
src/shared/restricted.ts:11
↓ 15 callersFunctionwiki
(lang, name, url, minLen = 150)
scripts/fetch-test-images.mjs:28
↓ 9 callersFunctionmergeTiles
(tiles: string[])
src/background/merge-tiles.ts:43
↓ 9 callersFunctionmulti
(id: string)
src/offscreen/packs.ts:33
↓ 9 callersFunctionmulti
(id)
scripts/ocr-image-test.mjs:31
↓ 9 callersFunctionshouldShowNudge
(s: ReviewState)
src/sidepanel/review.ts:32
↓ 8 callersFunctioncheck
(cond, msg)
scripts/verify-md.mjs:34
↓ 7 callersFunctionrecognizeBuffer
( imageBuffer: ArrayBuffer, lang: string = DEFAULT_PACK, onProgress?: (p: number) => void, )
src/offscreen/engine.ts:414
↓ 7 callersFunctionthresholdFor
(nudgeCount: number)
src/sidepanel/review.ts:26
↓ 5 callersFunctioncheck
(cond, msg)
scripts/verify-capture-sources.mjs:52
↓ 5 callersFunctionensureOffscreen
Only one offscreen document may exist per extension — check before creating.
src/background/service-worker.ts:377
↓ 5 callersFunctionmedian
(xs: number[])
src/offscreen/engine.ts:178
↓ 5 callersFunctionpanelPrefs
The panel's persisted prefs: capture mode for entry points that don't carry * one (keyboard shortcut, post-grant fallback) and the OCR language pack.
src/background/service-worker.ts:112
↓ 5 callersFunctionsavePrefs
()
src/sidepanel/sidepanel.ts:72
↓ 4 callersFunctionblockedIfRestricted
If a tab's page is one Chrome forbids all extensions from touching (the Web * Store, chrome:// …), tell the panel to abstain honestly and return tru
src/background/service-worker.ts:172
↓ 4 callersFunctionpostCaptureError
Post NEED_PERMISSION for a missing host/activeTab grant, else surface the error.
src/background/service-worker.ts:197
↓ 4 callersFunctionsyncPicker
Highlight the button matching `mode` within a picker, and roll the roving * tabindex onto it so Tab lands on the active option (arrow keys move from
src/sidepanel/sidepanel.ts:61
↓ 3 callersFunctionactiveTab
()
src/sidepanel/sidepanel.ts:215
↓ 3 callersFunctioncheck
(cond, msg)
scripts/verify-realpage.mjs:35
↓ 3 callersFunctioncheck
(c, m)
scripts/verify-md-images.mjs:35
↓ 3 callersFunctionfetchBuf
(p: string)
src/testbed/testbed.ts:15
↓ 3 callersFunctiongroupLines
Group a column's boxes into visual lines (by vertical overlap), each sorted * left-to-right, lines top-to-bottom.
src/offscreen/engine.ts:290
↓ 3 callersFunctioninject
(tabId: number, func: (...a: never[]) => T, ...args: unknown[])
src/background/fullpage.ts:37
↓ 3 callersFunctionlastMode
()
src/background/service-worker.ts:121
↓ 3 callersFunctionloadHistory
()
src/sidepanel/sidepanel.ts:665
↓ 3 callersFunctionnorm
(s)
scripts/ocr-image-test.mjs:130
↓ 3 callersFunctionocrImageFile
(file: File)
src/sidepanel/sidepanel.ts:766
↓ 3 callersFunctionsetMode
(code: boolean)
src/sidepanel/sidepanel.ts:578
↓ 3 callersFunctionstartBusy
(label: string)
src/sidepanel/sidepanel.ts:224
↓ 3 callersFunctionstartSelection
Show the overlay on a tab, injecting it first if the content script is absent. * If we lack host access, ask the user to grant capture for this site.
src/background/service-worker.ts:136
↓ 3 callersFunctionwireRovingKeys
(container: HTMLElement, activateOnMove: boolean)
src/sidepanel/sidepanel.ts:598
↓ 2 callersFunctionabsolutize
(els: NodeListOf<Element>, attr: string)
src/sidepanel/html-to-markdown.ts:25
↓ 2 callersFunctionblobToDataUrl
(blob: Blob)
src/background/service-worker.ts:367
↓ 2 callersFunctioncachedFetch
Cache-first fetch into Cache Storage (unlimitedStorage is granted).
src/offscreen/packs.ts:97
↓ 2 callersFunctionclose
()
site/assets/analytics.js:71
↓ 2 callersFunctioncolOf
(b: RecognitionResult)
src/offscreen/engine.ts:328
↓ 2 callersFunctioncopyLabelFor
(mode?: CaptureMode)
src/sidepanel/sidepanel.ts:622
↓ 2 callersFunctioncreate
(buf: ArrayBuffer)
src/offscreen/formula.ts:48
↓ 2 callersFunctiondestroyAll
()
scripts/ocr-image-test.mjs:162
↓ 2 callersFunctiondownload
(url, dest)
scripts/ocr-image-test.mjs:49
↓ 2 callersFunctionfetchLocal
(path: string)
src/offscreen/packs.ts:106
↓ 2 callersFunctiongapChroma
Fraction of a region's pixels that are strongly chromatic (max−min RGB). Reads * from the ORIGINAL colour pixels (boostColoredText greyscales the rec
src/offscreen/engine.ts:221
↓ 2 callersFunctionhandleCapture
(req: CaptureRequest)
src/background/service-worker.ts:206
↓ 2 callersFunctionhandleConvertPageMd
Read the page's full HTML (no OCR — structure comes from the DOM) and hand it to * the panel, which converts it to Markdown. The injected function i
src/background/service-worker.ts:287
↓ 2 callersFunctionhandleFullPage
Capture the full scrollable page, then hand the tiles to the offscreen doc.
src/background/service-worker.ts:250
↓ 2 callersFunctionhandleViewport
Capture the whole visible viewport (no region selection) and OCR it.
src/background/service-worker.ts:229
↓ 2 callersFunctionisSpan
(row: OcrWord[])
src/offscreen/engine.ts:498
↓ 2 callersFunctionlangOf
(name)
scripts/ocr-image-test.mjs:167
↓ 2 callersFunctionloadState
()
src/sidepanel/review.ts:36
↓ 2 callersFunctionluma
(r: number, g: number, b: number)
src/offscreen/engine.ts:114
↓ 2 callersFunctionmedian
(xs)
scripts/ocr-image-test.mjs:80
↓ 2 callersFunctionmedian
(xs)
scripts/ocr-bench.mjs:65
↓ 2 callersFunctionnorm
(s)
scripts/ocr-bench.mjs:127
↓ 2 callersFunctionocr
(file, langId = 'latin')
scripts/ocr-image-test.mjs:169
↓ 2 callersFunctionopenHistory
()
src/sidepanel/sidepanel.ts:694
↓ 2 callersFunctionoptedOut
()
site/assets/analytics.js:17
↓ 2 callersFunctionpackOf
(id: string)
src/offscreen/packs.ts:61
↓ 2 callersFunctionrenderMarkdown
(html: string, title: string, url: string, ocrBySrc?: Map<string, string>)
src/sidepanel/sidepanel.ts:276
↓ 2 callersFunctionrenderResult
(r: OcrResult, save = true)
src/sidepanel/sidepanel.ts:410
↓ 2 callersFunctionrenderStars
(onActivate: () => void)
src/sidepanel/review.ts:82
↓ 2 callersFunctionrenderText
Code mode → syntax-highlighted codeText (read-only). Prose → editable, with * per-word confidence underlines + a low-confidence summary.
src/sidepanel/sidepanel.ts:434
↓ 2 callersFunctionreprocess
Re-run OCR on a crop we already captured, in a new mode (no screenshot).
src/background/service-worker.ts:190
↓ 2 callersFunctionrunAndRead
(msg, timeoutMs = 120000)
scripts/verify-realpage.mjs:51
↓ 2 callersFunctionrunAndRead
(msg, timeoutMs = 60000)
scripts/verify-capture-sources.mjs:81
↓ 2 callersFunctionsaveState
(s: ReviewState)
src/sidepanel/review.ts:45
↓ 2 callersFunctionsetBackendBadge
(backend: 'webgpu' | 'wasm')
src/sidepanel/sidepanel.ts:385
↓ 2 callersFunctionshowOverlay
Tell the overlay (if present) to show; true on success.
src/background/service-worker.ts:151
↓ 2 callersFunctionstartActiveTabSelection
Resolve the active tab, then start selection on it.
src/background/service-worker.ts:128
↓ 2 callersFunctionsyncLang
Reflect the selected pack in the UI; the download note only applies to * non-bundled packs.
src/sidepanel/sidepanel.ts:99
↓ 2 callersFunctionteardown
()
src/content/overlay.ts:70
↓ 2 callersFunctionwait
(ms: number)
src/background/fullpage.ts:16
↓ 1 callersFunctionboostColoredText
* Boost coloured text on a light background so detection sees it. PP-OCRv5's * detector is tuned for dark, high-luminance-contrast text; coloured tex
src/offscreen/engine.ts:129
↓ 1 callersFunctionbuild
()
site/assets/analytics.js:35
↓ 1 callersFunctionbuildByteInverse
()
src/offscreen/formula.ts:65
↓ 1 callersFunctionbuildRows
* Build one Row per visual line from box geometry. The recognizer dict has no * space token, so spacing is reconstructed: a space wherever there's a
src/offscreen/engine.ts:360
↓ 1 callersFunctionbuildService
( lang: string, prev: Promise<PaddleOcrService> | null, onProgress?: (p: number) => void, )
src/offscreen/engine.ts:71
↓ 1 callersFunctionbuildService
()
src/sidepanel/html-to-markdown.ts:56
↓ 1 callersFunctionbuildSessions
()
src/offscreen/formula.ts:40
↓ 1 callersFunctioncaptureFullPage
( tabId: number, windowId: number, onProgress?: (tile: number) => void, )
src/background/fullpage.ts:67
↓ 1 callersFunctioncaptureOnce
One captureVisibleTab with a single retry on the rate-limit error.
src/background/fullpage.ts:48
↓ 1 callersFunctioncenter
(c: [number, number])
src/offscreen/engine.ts:532
↓ 1 callersFunctionclean
Parse HTML into a DETACHED document and strip non-content nodes. Never touches * the live page (the SW already serialized it to a string). Relative
src/sidepanel/html-to-markdown.ts:19
↓ 1 callersFunctioncolOf
(b)
scripts/ocr-image-test.mjs:106
↓ 1 callersFunctioncolOf
(b)
scripts/ocr-bench.mjs:97
↓ 1 callersFunctioncopyOrtWasm
()
vite.config.ts:11
↓ 1 callersFunctioncropRegion
Crop the selected rect out of the full viewport PNG, scaling by DPR.
src/background/service-worker.ts:346
↓ 1 callersFunctiondeHomoglyph
(s: string)
src/offscreen/engine.ts:203
↓ 1 callersFunctiondeHomoglyph
(s)
scripts/ocr-image-test.mjs:78
↓ 1 callersFunctiondeHomoglyph
(s)
scripts/ocr-bench.mjs:63
↓ 1 callersFunctiondecodeIds
(ids: number[])
src/offscreen/formula.ts:90
↓ 1 callersFunctionfetchBuf
(path: string)
src/offscreen/engine.ts:55
↓ 1 callersFunctionfetchWithProgress
Stream a download, reporting progress 0..1 (content-length permitting).
src/offscreen/packs.ts:69
↓ 1 callersFunctionfixDigitOh
(s: string)
src/offscreen/engine.ts:210
↓ 1 callersFunctionformulaUsedWasm
()
src/offscreen/formula.ts:30
↓ 1 callersFunctiongetService
Build the engine once per language; reused across captures.
src/offscreen/engine.ts:59
↓ 1 callersFunctiongetSessions
()
src/offscreen/formula.ts:32
next →1–100 of 163, ranked by callers