CricRN is an advanced AI-powered cricket coaching application built with React Native and Python. It uses real-time computer vision and biomechanical analysis to provide broadcast-level analytics for every delivery, right from your phone.
Get access to detailed stats instantly after every delivery:
- Ball Speed (in km/h)
- Swing & Turn (in degrees)
- HawkEye DRS: Predicts pitching, impact, and wickets using a custom OpenCV physics engine.
The Python backend processes your delivery video in real-time, drawing a glowing red tracer path over the ball trajectory so you can visualize the exact line and length.
CricRN connects directly to the AI backend via WebSockets. It uses motion detection to automatically stop recording precisely when the delivery is dead or hit—saving storage space and preventing you from having to manually stop the camera.
- Wagon Wheels: Visualize where runs were scored.
- Pitch Maps: See a scatter map of where deliveries pitched on the 22-yard strip.
- Beehive (Impact): View where the ball passed the stumps.
- Cloud Database: Save your matches and ball-by-ball history directly to the local SQLite database.
- Frontend (Mobile): React Native / Expo. Uses
react-native-vision-camerafor high-speed frame capture, andreact-native-svgfor dynamic data visualization. - Backend (AI): FastAPI / Python. Powered by OpenCV (
BackgroundSubtractorMOG2, trajectory plotting) and MediaPipe for biomechanics. Uses SQLite for zero-setup local database storage.
cd backend
python -m venv venv
source venv/bin/activate # Or `venv\Scripts\activate` on Windows
pip install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port 8000cd mobile
npm install
npx expo startNote: For the best performance, it is recommended to build the app natively using npx expo run:ios or npx expo run:android, or deploy it to a physical device via GitHub Actions.
- React Native
- Expo
- FastAPI
- OpenCV
- MediaPipe
- SQLite
- SQLAlchemy