I know Python and basic programming and want a small personal Android app that takes a photo, extracts and displays the text, and sends it in a text message. What language or framework would get me there fastest?
What's the quickest way to build a camera and OCR app for Android?
Answers
For a native Android app, I'd use Kotlin and Android Studio. You can use a camera intent to take the photo, Google ML Kit for text recognition, and a text field to show the result.
For messaging, start by opening a messaging app with the recognized text filled in. That's simpler than sending an SMS directly and lets you check the text before sending it.
Reply to this answer
Since you already know Python, look at Kivy or BeeWare before signing up to learn a whole new language. Both can package Python apps for Android.
The catch is that camera access and OCR integration may take some Android-specific work. In particular, using ML Kit from Python can require a bridge to native Android code, so check that piece early rather than assuming the packaging step handles it.
Reply to this answer
A web app might be the quickest prototype. Open it in the phone's browser, capture or upload a photo, and display the OCR result. You could also make it a progressive web app if you want an app-like shortcut.
Check the OCR and messaging steps before committing, though. A browser version may need an OCR service or backend, and handing text off to a messaging app isn't the same as sending a message automatically.
Reply to this answer
Flutter is another option if you want a dedicated app UI. You could keep the image processing in a Python backend and have the app send photos to it. That's more moving parts than a simple local app, though, so it may not be the fastest route for this particular project.
Reply to this answer
Add your answer
Answers are reviewed before publication.
_one_more_option:
Kotlin isn't the only option in Android Studio. Java works too, but Kotlin is a common choice for new Android projects.