Skip to main content

Apple Vision Ocr

@tituscapilnean/apple-vision-ocrv2026.11.02.2· MIT· 2d agoBEHAVIORSACCEPTED WARNINGS
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.

02Behaviors1
@tituscapilnean/apple-vision-ocrv2026.11.02.2apple_vision_ocr.ts

Global Arguments

ArgumentTypeDescription
recognitionLevel?enumVision recognition level; fast is ~5x quicker but misses small text
languages?arrayBCP-47 recognition languages in priority order, e.g. [en-US, ro-RO]; empty = Vision default
languageCorrection?booleanLet Vision autocorrect words; off keeps URLs and watermarks verbatim
flagPatterns?arrayCase-insensitive regexes; an image is flagged when its text or metadata matches one
extensions?arrayFile extensions picked up when a path is a directory
batchSize?numberImages 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
ArgumentTypeDescription
pathsarrayImage files and/or directories to scan (absolute, or relative to the repo)
recursive?booleanDescend into subdirectories
label?stringInstance 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 Versions1
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

06Platforms
07Labels