riddleling/iOS-OCR-Server

An iOS OCR Server Using Apple’s Vision Framework

What it solves

This project solves the need for a free, unlimited, and private OCR service by turning an iPhone into a local server. It eliminates cloud dependencies and keeps all image data on-device, while allowing any device on the same network to use the OCR capability.

How it works

The app runs as a server on the iPhone. Once launched, it starts automatically and displays an IP address. Any device on the same Wi-Fi network can open that address in a browser to upload images and get OCR results, or call the provided HTTP API (e.g., /upload) with curl or Python. The app uses Apple’s Vision Framework to perform high-precision, multi-language text recognition. It also offers a document paragraph detection endpoint (/docOCR) for iOS 26+ and a way to list supported recognition languages. Responses include the recognized text, image dimensions, and bounding-box coordinates for each detected text region.

Who it’s for

It’s for developers and power users who want an on-device OCR service without cloud costs, or who need to share OCR capabilities across devices in a local network. It also suits people who need a simple way to build OCR into their own apps via a JSON API, or even set up a cluster of iPhones to process images at scale.

Highlights

  • 100% local processing – no cloud, full privacy
  • High-precision OCR powered by Apple’s Vision Framework
  • Multiple languages supported with automatic detection
  • Simple JSON API for app integration
  • Web interface for quick OCR tests
  • Optional document paragraph detection (iOS 26+)
  • Ability to specify language priority via query parameters
  • Runs on a single iPhone and can be scaled to a cluster

Related

  • Project
  • Project
  • Project
  • Project
  • Project