This repository contains an Android demo application that utilizes AI for image recognition. The app allows users to classify images and provides information based on the recognized content.
- Android Studio installed
- Android device or emulator configured
- Python installed
- Ngrok installed
git clone https://github.com/Khalil-Bchir/AI-Image-Recognition-Android-Demo-App.git
cd AI-Image-Recognition-Android-Demo-App
-
Navigate to the backend directory:
cd api
-
Start your Python server. For example:
python app.py
-
Use ngrok to expose your local server to the internet. In a separate terminal window, run:
ngrok http 5000
Replace
5000
with the port your Python server is running on, if different. -
Ngrok will provide a public URL (e.g.,
http://abcdef1234.ngrok.io
). Update your Android app's configuration to use this URL for API requests.
- Open Android Studio.
- Navigate to
File > Open
and select the cloned project directory (AI-Image-Recognition-Android-Demo-App
). - Wait for Android Studio to sync the project and build it.
- Connect an Android device via USB or use an emulator.
- Build and run the application (
Run > Run 'app'
orShift + F10
).
- Launch the application on your Android device or emulator.
- Capture a new image using the device camera or select an existing image from the gallery.
- The app will use AI to classify the image.
- View the recognized content and additional information provided by the app.
Contributions are welcome! If you want to contribute to this project, follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes and commit them (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.
This project is licensed under the MIT License. See the LICENSE file for more details.
For questions or feedback, please contact [email protected].