# NMAC427/SwiftOCR

Fast and simple OCR library written in Swift

Repository: https://github.com/NMAC427/SwiftOCR
Canonical: https://ross.abutalabs.com/products/swiftocr
Language: Swift
License: Apache-2.0
License Family: permissive
Topics: ocr, swift, ocr-library, optical-character-recognition, ocr-engine, ios, macos, swiftocr, deprecated
Last push: 2020-12-13T08:49:55+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3785, "days_push": 2089, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4632, forks 475 (observed 2026-08-28T04:08:55.375565+00:00)

## What it is
SwiftOCR is a fast and simple OCR library written in Swift that uses a neural network for image recognition. It is optimized for recognizing short, one-line alphanumeric codes and supports iOS and macOS, but is now deprecated in favor of Apple's Vision framework.

## Use cases
- recognize short alphanumeric codes like gift card codes from images
- perform OCR on iOS apps with minimal setup
- extract text from single-line images quickly
- train a custom OCR model for specific character sets
- replace Tesseract for fast alphanumeric recognition on Apple platforms

## When to choose
- you need to recognize short, one-line alphanumeric codes on iOS or macOS
- you want a simple Swift-native OCR integration with just a few lines of code
- you need faster and more accurate results than Tesseract for gift-card-style codes

## When to avoid
- you need to recognize long-form text like poems or articles (use Tesseract instead)
- you are starting a new project (the library is deprecated; use Apple's Vision framework)
- you need platforms other than iOS or macOS
- you need ongoing maintenance, bug fixes, or community support

## Facets
- artifact type: library
- maturity: abandoned
- function: ocr, image-processing, machine-learning
- domain: computer-vision, image-processing
- platform: -
- tags: neural-network, deprecated, cocoapods, carthage, alphanumeric-recognition, ios-tools, ios, macos, swift

## Member repositories
- NMAC427/SwiftOCR (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:55.375565+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:19:35.681785+00:00, confidence not recorded.
  - readme: https://github.com/NMAC427/SwiftOCR (fetched 2026-08-28T04:08:55.375565+00:00, sha f7d4242d0c87)
- Data as of 2026-08-30T08:39:29.467469+00:00.
