The Vision Text (Text detector) application is designed to capture images using the device's camera and then extract text from those images using machine learning models provided by Google's ML Kit.
The application primarily consists of two activities: MainActivity and ScannerActivity.
- This activity serves as the entry point of the application.
- It displays a welcome message along with a brief description of the application.
- It contains a button ("Capture Image") that directs the user to the ScannerActivity when clicked.
- This activity handles the capturing of images and the detection of text.
- It displays the captured image and provides buttons for image capture ("Snap") and text detection ("Detect").
- When the "Snap" button is clicked, the application requests camera permissions if not granted already and captures an image using the device's camera.
- Upon successfully capturing an image, the image is displayed in an ImageView.
- When the "Detect" button is clicked, the application processes the captured image to extract text using Google's ML Kit Text Recognition API.
- Detected text is displayed in a TextView below the captured image.
- The application requests camera permissions from the user to allow image capture.
- It also requires internet permission for ML Kit operations.
- The application integrates Google's ML Kit library for text recognition.
- It uses TextRecognizer to process images and extract text from them.
- Detected text is then displayed to the user in the ScannerActivity.
- The UI design of both activities is implemented using XML layout files.
- RelativeLayout is used for positioning UI elements within the activities.
- Colors are defined in a separate XML file for consistency and ease of maintenance.
- The project's Gradle file includes necessary dependencies for ML Kit text recognition, Firebase core, and other required libraries.
Click to expand
| Main Screen | Functions Screen | Capturing Image through camera |
|---|---|---|
![]() |
![]() |
![]() |
| Confirming Image | Image Displayed in App | Output |
|---|---|---|
![]() |
![]() |
![]() |
https://drive.google.com/file/d/1no1gFHBkmdayGgRNGsebtzliPQDpSuPa/view
https://drive.google.com/file/d/1VxQqkwbQmTumElswjRrvUzw22uBOP1u_/view?usp=shari





