This repository provides an Android application for classifying traffic signs using a pre-trained Convolutional Neural Network (CNN) model. The app is designed for real-time traffic sign recognition and can be used in applications such as driver assistance and autonomous vehicle systems.
For a detailed description of the CNN model and the underlying project, please refer to the main repository: Traffic Signs Classification Using Convolutional Neural Networks.
Download the app by clicking the button below.
[Note: It may take a few moments for the download to begin, as GitHub generates a direct download link for large files.]
The Android app provided in this repository is an extension of the Traffic Signs Classification project that uses a CNN model for detecting and classifying traffic signs into 43 different categories. This app is designed for real-time classification and provides an easy-to-use interface for users to test and experience how AI can assist in understanding traffic signs.
- Real-time traffic sign recognition using a pre-trained CNN model.
- User-friendly interface designed for intuitive navigation.
- Mobile-optimized performance with efficient image processing.
The app requires OpenCV for image processing functionalities. The OpenCV folder has been kept in a separate repository to reduce the size of this Android app repository.
-
Download the OpenCV library from the dedicated repository: OpenCV Back-up for Traffic Signs Classification Android App
Or download directly from here.
[Note: It may take a few moments for the download to begin, as GitHub generates a direct download link for large files.]
- Clone this repository:
git clone https://github.com/nishatrhythm/Android-App-of-Traffic-Signs-Classification-using-CNN.git cd Android-App-of-Traffic-Signs-Classification-using-CNN
- Extract the downloaded
opencv.zip
into your Android project directory. - Open the project in Android Studio.
- Ensure that your development environment is set up with the necessary SDKs and tools.
- Build and run the app on an Android device or emulator.
- Launch the app on your Android device.
- Point your device’s camera at a traffic sign.
- The app will detect and classify the sign, displaying the classification result in real-time.
The app uses a TensorFlow Lite model (model_trained.tflite
) that was converted from the original trained CNN model. This enables the app to perform efficient on-device inference, ensuring fast and responsive user interactions.
The original CNN model, trained using Keras, was converted to a TensorFlow Lite format for use in mobile applications.
- Frameworks Used: Android SDK, TensorFlow Lite
- Languages: Java, XML
- Dependencies:
- TensorFlow Lite library for on-device ML processing.
- CameraX for real-time camera feed integration.
- OpenCV for image processing.
app/src/main/java/
: Contains the main source code, including activities and helper classes.assets/model_trained.tflite
: The pre-trained TensorFlow Lite model for traffic sign classification.res/layout/
: XML files defining the UI of the app.