Apple Vision Ocr
@tituscapilnean/apple-vision-ocrv2026.11.02.2
01README
Read the text in local images with Apple's on-device Vision framework and their TIFF/IPTC copyright metadata, then flag images carrying copyright notices or watermarks (©, "all rights reserved", stock agencies, cartoon syndicates, meme generators). macOS only; nothing to install, no network.
02Behaviors
@tituscapilnean/apple-vision-ocrv2026.11.02.2apple_vision_ocr.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| recognitionLevel? | enum | Vision recognition level; fast is ~5x quicker but misses small text |
| languages? | array | BCP-47 recognition languages in priority order, e.g. [en-US, ro-RO]; empty = Vision default |
| languageCorrection? | boolean | Let Vision autocorrect words; off keeps URLs and watermarks verbatim |
| flagPatterns? | array | Case-insensitive regexes; an image is flagged when its text or metadata matches one |
| extensions? | array | File extensions picked up when a path is a directory |
| batchSize? | number | Images per osascript call |
fn scan(paths: array, recursive?: boolean, label?: string)
OCR every image under the given paths with Apple Vision, read TIFF/IPTC copyright fields, and flag images matching copyright or watermark patterns
| Argument | Type | Description |
|---|---|---|
| paths | array | Image files and/or directories to scan (absolute, or relative to the repo) |
| recursive? | boolean | Descend into subdirectories |
| label? | string | Instance name for the result, so separate scans can be kept side by side |
Resources
scan(infinite)— Recognized text, copyright metadata and copyright/watermark flags for every scanned image
03Previous Versions
2026.11.02.1MIT
04Stats
A
100 / 100
Downloads
0
Archive size
8.8 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Docs keep secrets in a vault1/1earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned
deno-command1 accepted
Spawns a subprocess with Deno.Command().
- models/apple_vision_ocr.ts:308 — no reason given
06Platforms
07Labels