How ketsuryo/googlemlkitfordemo works
Project Type and Purpose
• This is a single-module, standalone Android mobile app.
• Purpose: ·Use the camera to capture text ·Recognize phone-number entities ·Allow the user to initiate a phone call.
File Structure
• app/src/main/java/io/intelligible/intelligentocr:
• MainActivity.kt – hosts the Fragments
• adapter/LanguagesAdapter.kt – UI list of supported languages
• constants/Constants.kt – app-wide constants
• customviews/ProgressDialog.kt – reusable loading UI
• extensions/ViewExtensions.kt – helper UI extensions
• ui/CameraFragment.kt – handles camera capture
• ui/InfoDisplayFragment.kt – displays recognized entities
• ui/BsLanguage.kt – language-selection UI
• utils/TextAnalyser.kt – core OCR/Text-entity extraction logic
• app/libs/storage-2.1.0.aar – an external library for local data storage or cache
• res/navigation/nav_graph.xml – the Android Navigation component for moving between Fragments
README for Insights
• Confirms: “development of Android APP with entity Recognition to make a phonecall”
• No backend or cloud services referenced—all processing is on-device.
Main Components and Relationships
A. User Interface Layer
• MainActivity
• CameraFragment
• InfoDisplayFragment
• BsLanguage screen & LanguagesAdapter
• Custom ProgressDialog
B. Domain/Business Logic
• TextAnalyser (performs OCR and entity recognition logic)
C. Data/Storage Layer
• storage-2.1.0.aar (local persistence/cache)
• Constants (configuration)
D. Platform & External Services
• Camera hardware API (via Android CameraX or legacy Camera)
• Telephony API (for making phone calls)
• Android Navigation framework
Architectural Patterns and Design Principles
• Layered architecture: UI → Domain → Data
• Separation of concerns: Fragments handle only UI and user actions; TextAnalyser encapsulates all parsing logic; storage library handles persistence.
• Use of Android Jetpack Navigation for declarative navigation.
• Adapters and custom views to modularize UI components.
Final Checklist
• Optional: note AndroidManifest entry for permissions (Camera, Phone Call).