Getting text from image on ios (image processing)
One of the main open source libraries used to do OCR on iOS is a google-sponsored open source project called tesseract.
Here is some info on compiling tesseract for use in iOS apps:
tesseract
The same guy has a nice sample project on github demonstrating how a simple client might use the compiled library:
Pocket-OCR
Getting text from a picture in iOS
I would look into this https://github.com/nolanbrown/Tesseract-iPhone-Demo and stack overflow has some posts about this already like Getting text from image on ios (image processing)
Searching an image for specified text
Here is a broad overview of the approach I would take:
- Find a C/C++ based OCR library
- Get it to compile on the iPhone
- Create a UI to feed images to the OCR library
- Store output of OCR, including words found and their location in the image.
- Create a UI to allow users to enter a search.
- Search OCR output for matches and highlight the location of matches on the image.
I imagine step 2 is going to be the most difficult. Tesseract may work, it is C++ based but I don't know what dependencies it has.
UPDATE: Someone on GitHub has posted a demo iPhone App that uses Tesseract.
Read text from image iPhone SDK
See this for how to do something quick on iOS with Tesseract. I doubt you will get the accuracy you want though. So far I haven't found a good opensource solution because the iPhone camera is not well suited to this problem. There are a few online API options that do better.
Oh and one word of advice, don't pay for anything without trying it in your situation :)
Related Topics
What's the Equivalent of the Uisplitviewcontroller in Swiftui
How to Reference Instance Function When Calling Sequencetype.Foreach
How to Use Sfsafariviewcontroller with Swiftui
Googlemaps Basic iOS Demo App Crash - Unrecognized Selector Sent to Instance
iOS Swift Multiple Dimension Arrays - Compiliing Takes Ages. What Should I Change
Xcode6: Run Two Instances of the Simulator
Paging Uiscrollview in Increments Smaller Than Frame Size
How to Remove the Xcode Warning Apple MACh-O Linker Warning 'Pointer Not Aligned at Address
Uicollectionview Auto Scroll to Cell at Indexpath
Storyboards VS. the Old Xib Way
The Maximum Number of Apps for Free Development Profiles Has Been Reached. Xcode 11.5
Difference Between Presentviewcontroller and Uinavigationcontroller
Detecting Touches on Mkoverlay in iOS7 (Mkoverlayrenderer)
Google Maps iOS Sdk, Getting Current Location of User
How to Verify That I am Running on a Given Gcd Queue Without Using Dispatch_Get_Current_Queue()
Xcode 5 Crashes -- Xcode Quit Unexpectedly
Firebase Fcm Silent Push Notifications for iOS
How to Prevent from Scrolling Uitableview Up When Nsfetchedresultscontroller Add New Record