Classcau is an open-source Android application that leverages the power of OpenCV for real-time image segmentation and camera-based processing. Designed for developers, researchers, and enthusiasts, this project demonstrates how to integrate advanced computer vision techniques into a modern Android app, with a focus on usability, modularity, and performance.
- Real-Time Camera Preview: Utilizes Android's Camera2 API for high-performance camera streaming.
- Image Segmentation: Segments images based on regions of interest (ROI) using OpenCV, with transparency and edge detection.
- Custom Overlays: Draws interactive overlays to guide users during image capture.
- Modular Architecture: Clean separation of model and view components for easy extension and maintenance.
- Tablet-Optimized UI: Responsive design for various screen sizes.
- OpenCV Integration: Includes a local OpenCV 3.4.3 library for advanced image processing.
Add your screenshots here for maximum impact!
- Language: Java
- Platform: Android (minSdkVersion 21, targetSdkVersion 28)
- Libraries:
- OpenCV 3.4.3
- Android Support Libraries (AppCompat, ConstraintLayout)
app/
└── src/main/java/br/com/patricksferraz/classcau/
├── model/ # Image segmentation logic (OpenCV)
└── view/ # Activities and custom views (Camera, Canvas, Auth)
openCVLibrary343/ # Local OpenCV Android library module
- Android Studio
- Android SDK 28+
- Java 8+
- Clone the repository:
git clone https://github.com/patricksferraz/classcau-android.git cd classcau-android
- Open in Android Studio:
- File > Open > Select the project directory.
- Build the project:
- Gradle will automatically download dependencies.
- Run on a device or emulator:
- Grant camera and storage permissions when prompted.
- Launch the app. The main screen opens the camera preview.
- Position the object (e.g., a cutting board) within the highlighted rectangle.
- Tap the capture button to segment the image based on the region of interest.
- Segmented images are processed and can be saved or further analyzed.
Contributions are welcome! To get started:
- Fork the repository
- Create a new branch (
git checkout -b feature/your-feature
) - Commit your changes (
git commit -am 'Add new feature'
) - Push to the branch (
git push origin feature/your-feature
) - Open a Pull Request
Please see CONTRIBUTING.md for more details.
This project is licensed under the MIT License. See the LICENSE file for details.
- Developed by Patrick Silva Ferraz
- Powered by OpenCV
- Inspired by the open-source and Android developer communities
Android, OpenCV, Image Segmentation, Real-Time Processing, Computer Vision, Camera2 API, Java, Open Source, Mobile Development, Pattern Recognition, ROI, Cutting Board Detection
"Empowering Android with real-time computer vision. Fork, star, and contribute!"