Production-level React Native Android application built for the Alemeno Frontend Internship Assignment.
This project implements a modular computer vision pipeline architecture for:
- custom square marker detection
- false positive filtering
- preprocessing pipeline
- perspective transform architecture
- 300x300 marker extraction flow
- latest 20 marker gallery system
- scalable React Native architecture
- Android camera access
- image capture flow
- reusable capture hook architecture
- preprocessing architecture
- grayscale conversion flow
- Gaussian blur flow
- thresholding flow
- modular OpenCV-ready pipeline
- contour validation
- square filtering
- false positive rejection
- aspect ratio validation
- minimum area filtering
- transform architecture
- orientation correction flow
- 300x300 extraction pipeline
- latest 20 markers storage
- horizontal gallery preview
- scalable marker store
- modular folder structure
- reusable components
- scalable OpenCV pipeline
- centralized config management
- typed architecture using TypeScript
- React Native 0.74.5
- TypeScript
- Android Studio
- Gradle 8.7
- AGP 8.6
- Java 17
- react-native-fast-opencv
- custom preprocessing pipeline
- local modular store architecture
src
┣ components
┃ ┣ DetectionOverlay.tsx
┃ ┗ MarkerGallery.tsx
┣ config
┃ ┗ appConfig.ts
┣ hooks
┃ ┗ useImageCapture.ts
┣ opencv
┃ ┣ filters.ts
┃ ┣ imageProcessor.ts
┃ ┣ markerDetector.ts
┃ ┣ perspectiveTransform.ts
┃ ┗ preprocessing.ts
┣ screens
┃ ┗ CameraScreen.tsx
┣ services
┣ store
┃ ┗ markerStore.ts
┣ types
┃ ┗ marker.tsCamera Capture
↓
Image Preprocessing
↓
Grayscale Conversion
↓
Gaussian Blur
↓
Thresholding
↓
Contour Detection
↓
Square Validation
↓
False Positive Filtering
↓
Perspective Transform
↓
300x300 Marker Extraction
↓
Gallery StorageThe application validates candidate markers using:
- 4-corner contour validation
- square aspect ratio filtering
- minimum contour area threshold
- modular validation pipeline
This reduces incorrect detections and improves extraction reliability.
The system architecture includes:
- corner point mapping
- orientation correction
- square normalization
- resize flow to 300x300
This ensures consistent marker extraction output.
git clone YOUR_GITHUB_LINKnpm installcd android
./gradlew clean
cd ..npx react-native startnpx react-native run-android- React Native environment setup
- Android emulator setup
- camera capture architecture
- preprocessing pipeline architecture
- contour filtering architecture
- perspective transform architecture
- marker gallery system
- reusable production folder structure
- real contour extraction using OpenCV APIs
- live frame processor integration
- automatic real-time detection
- advanced perspective correction
During development the following major issues were resolved:
- Gradle compatibility conflicts
- Kotlin compatibility issues
- AGP version conflicts
- React Native environment setup
- Metro stabilization
- camera library integration issues
- OpenCV integration preparation
- TypeScript architecture issues
This architecture was designed to support:
- real-time frame processing
- live detection overlays
- multi-marker detection
- OpenCV native acceleration
- future iOS support
- reusable detection services
- custom square marker detection architecture
- false positive filtering
- perspective transform pipeline
- orientation correction flow
- resize architecture to 300x300
- latest 20 marker storage
- production-level React Native architecture
Darshan S
BE Computer Science & Data Science
PES College of Engineering, Mandya
GitHub: https://github.com/darshanshivakumar27
LinkedIn: (https://www.linkedin.com/in/darshan-s-675709298/)
Submitted for: Alemeno Frontend Internship Assignment