Skip to content
Daniele - Nexor Technology edited this page Oct 8, 2018 · 16 revisions

Tesseract-OCR-iOS is an iOS wrapper library of the Tesseract optical character recognition engine, which is considered one of the most accurate open-source OCR engines available.

Tesseract-OCR-iOS provides a powerful and easy to use API. Use it in iOS 7.0+ projects written in either Objective-C or Swift.

Getting Started

See the Installation page in the wiki for instructions on how to install Tesseract-OCR-iOS in your iOS project. Once you're setup, check out some usage examples.

Not happy with Tesseract's recognition results? Refer to the Tips for Improving OCR Results wiki page for some helpful ideas.

Need more lower-level control over Tesseract? Take a look at Advanced Tesseract Configuration.

XCode 10

https://stackoverflow.com/questions/52331634/xcode-10-0-gm-dyld-lazy-symbol-binding-failed-cant-resolve-symbol-cxa-gu by VJ_iOS

libstdc++ is removed in iOS 12 simulator but it remains in the iOS 12.0 (device) . So as a workaround you can add following command to your pod file if you're using Cocoapods as a dependency manager:

XCode 10

https://stackoverflow.com/questions/52331634/xcode-10-0-gm-dyld-lazy-symbol-binding-failed-cant-resolve-symbol-cxa-gu by VJ_iOS

libstdc++ is removed in iOS 12 simulator but it remains in the iOS 12.0 (device) . So as a workaround you can add following command to your pod file if you're using Cocoapods as a dependency manager:

post_install do |installer| installer.pods_project.targets.each do |target| if target.name == 'TesseractOCRiOS' target.build_configurations.each do |config| config.build_settings['ENABLE_BITCODE'] = 'NO' end header_phase = target.build_phases().select do |phase| phase.is_a? Xcodeproj::Project::PBXHeadersBuildPhase end.first

        duplicated_header_files = header_phase.files.select do |file|
            file.display_name == 'config_auto.h'
        end
        
        duplicated_header_files.each do |file|
            header_phase.remove_build_file file
        end
    end
end

end

License

Tesseract OCR iOS and TesseractOCR.framework are distributed under the MIT license.

Tesseract, maintained by Google, is distributed under the Apache 2.0 license.