Getting text from a picture in iOS [closed] - ios

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I was wondering if it is possible to get text (like an NSString) from a picture in iOS. So like if you took a picture of the words "Hello World" the code would convert the image into an NSString with the words "Hello World". For my purposes it wont matter if it is not case sensitive but I would like to know if it is possible and if so, then how.
Thanks.

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)

It is possible.
You would use OCR (Optical Character Recognition).
Because OCR is a broad and complex topic, the question of "how to" is probably too vague for S.O. You should probably do some research, make some prototypes, and develop some more specific follow up questions.

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

Related

Is there any way to plot and analyse data with swift? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to build an iOS application where you can easily view and interact with geophysics data (well logs, seismic sections etc), which usually come as huge matrices in SEGY format or similar.
Is there any way I can do this with swift? Also I need to extract statistics and and perform mathematical operations. Is there any scientific use of swift at all?
Sorry if I'm being vague, it's a fairly new idea and I would love to do it on iOS instead of using C/matlab/python etc.
There's nothing native to Swift, but you could always use third party frameworks for anything.
Of course, science power of Matlab won't be achievable by iOS, since the language is not intended for that, so you'll have to write some math functions on your own.
For charts, I used CorePlot, but now there's a better alternative written completely in Swift, called ios-charts.

How to get text from image in iphone [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
In my project I need to get text from an image. Actually I want to get information(text) from a business card. I need to implement OCR in my project.I've used an open source library Tesseract But its not accurate. Please tell me about any good library which could be useful.
I think OpenCV is enough for you task. Official manual: http://docs.opencv.org/
Other examples: github
And working example using opencv and Tesseract together iPhone-OCR

iOS best way to store images [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
So, i just want to know what the best way to display image from URL.
I have to display few post from the server into my iOS app using UITableView with title and image in it.
I had already created the WebServer for my app and fetching is done through TBXML and using Core Data to store the title and description from the server.
and i saw some library available to cache the image like https://github.com/path/FastImageCache
Now my question is that how can i display image from the URL ?
And what is the best method to do it.
Thanks
The best way is to write your own code. Using a library will work but it will be generic and by definition slower than what you can write for your specific use case.
You are far, far better off learning the few lines of code it takes to download an image and display it. Learn how to use a NSURLSession. Learn how to consume NSData and turn it into a UIImage. Learn how to use a NSNotification or a block to propagate the loaded image to your user interface.
Your code will be stronger and you will become a better developer.

Image Recognition in iOS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am creating an iPad app for golfers, I will get their score card image as below. I want to calculate sum of scores for each person by scanning this image.
Is there any way. Please give me a logic for this.
I have used opencv http://opencv.org in the past to do something similar but with sudoku puzzles.
It is a LOT of work and making it work with handwriting will add to the difficulty.
I found a really good resource for analysing sudoku grids. I'll try to find it again but it was 4 years ago.
Good luck though.
There is a Tesseract port for iOS which is about the best OCR you're likely to get on the platform without either:
A) Porting another OCR library
or
B) Shipping the images off to an online OCR service
To make this more complex, you don't just want to OCR but you want to OCR handwriting and put it into a grid. This is not something that can be done overnight but is in fact rather complex. Not impossible, but complex.
Would it not just be easier to let the players enter there scores straight onto the app and then airprint a score card?

What is the best way to format LaTeX source for the Kindle? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to format my book for a Kindle 3. I'm writing the book using LaTeX. I am ok with transferring the file in PDF format but I need it formatted to be small.
I have tried:
\documentclass[12pt,b7paper]{book}
\usepackage[top=0.5cm, bottom=0.5cm, left=0.5cm, right=0.5cm]{geometry}
But this is too small. I have also tried something like:
\usepackage[paperwidth=9cm, paperheight=12cm, top=1cm, left=1cm, right=1cm, bottom=1.5cm, includefoot]{geometry}
But that doesn't work well either. Has anyone found a good way to format a LaTeX PDF for the Kindle? (Not the big DX version.)
This works well. I found it important to remove paper size from the dvips command. Forgetting to adjust that setting through me off for a while.
\documentclass[12pt]{book}
\usepackage[paperwidth=9cm, paperheight=12cm, top=0.5cm, bottom=0.5cm, left=0.0cm, right=0.5cm]{geometry}
\special{papersize=9cm,12cm}
Why don't you convert the LaTeX to HTML and create a Mobipocket document from that? That way, the Kindle will be able to reflow the document, which it cannot do if you load it in PDF form.
This may be much more than you need, but it's worth pointing out that there's a much more comprehensive answer over on tex.stackexchange

Resources