ios-vision-ocr

Configure VNRecognizeTextRequest to extract text from iOS images on-device.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/co-labs-co/context-harness-skills --skill ios-vision-ocr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ios-vision-ocr
Source: https://github.com/co-labs-co/context-harness-skills/tree/main/skill/ios-vision-ocr
Command: npx skills add https://github.com/co-labs-co/context-harness-skills --skill ios-vision-ocr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Extracting text from images on-device is essential for document scanning and photo analysis, but many apps rely on cloud services or require complex setup.

Core Features & Use Cases

  • On-device VNRecognizeTextRequest setup and execution for fast, offline text extraction.
  • Multilingual support with configurable recognition languages and image preprocessing.
  • Use Case: Build a document scanner that converts captured photos into editable text without network access.

Quick Start

Capture an image and run VNRecognizeTextRequest to obtain the recognized text.

Frequently Asked Questions about ios-vision-ocr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from images on iOS without a network connection?

On-device text extraction on iOS uses the Vision framework's VNRecognizeTextRequest to process image data locally. It enables offline document scanning and photo analysis by configuring the request and handling VNRecognizedTextObservation results.

Can I configure multilingual text recognition using the iOS Vision framework?

Multilingual text recognition in the iOS Vision framework is supported by configuring recognition languages within your VNRecognizeTextRequest setup. This allows the on-device OCR engine to accurately process and extract text from images containing multiple languages.

What is the best way to handle image orientation when performing OCR on iOS?

Handling image orientation for iOS OCR requires providing proper orientation data alongside the input image to VNRecognizeTextRequest. This ensures the Vision framework correctly analyzes the visual layout before returning VNRecognizedTextObservation objects.

Does offline text extraction from camera captures work on all iOS devices?

Offline text extraction from camera captures works on supported iOS devices using the Vision framework. It leverages on-device processing to execute VNRecognizeTextRequest, providing fast document scanning without requiring network access.

Why does my VNRecognizeTextRequest return empty results during document scanning?

VNRecognizeTextRequest returns empty results when the input image data lacks proper orientation or the configured recognition languages do not match the text. Correcting image preprocessing and language settings ensures accurate VNRecognizedTextObservation outputs.