Skip to content

An extension over Apple Vision framework for extracting text from CIImage

License

Notifications You must be signed in to change notification settings

tomorrow-one/Excavator

Repository files navigation

Excavator

Cocoapods Cocoapods Cocoapods platforms

Requirements

  • iOS 13.0+
  • Xcode 11+
  • Swift 5.1+

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Excavator into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'Excavator'

Features

  • extract content from an image;
  • supported content types: IBAN, email;
  • all occurances are recognized;

Usage

let recognizer = TextRecognizer(extractor: IbanExtractor())
let ciImage = cameraImage()
recognizer.recognize(in: ciImage) { ibans in
    // do something here
}

For the complete flow, please refer to the Example project.

Configuration

As for now the library logs errors if any were produced into the standart output. You can switch it off with TextRecognizer.Config.isDebugLoggingEnabled = false

Example

License

Excavator is available under the MIT license. See the LICENSE file for more info.

About

An extension over Apple Vision framework for extracting text from CIImage

Resources

License

Stars

Watchers

Forks

Packages

No packages published