Skip to content

thecodemonster1/cric_field_project_1

Repository files navigation

https://github.com/thecodemonster1/cric_field_project_1.git

CricField Analyzer

CricField Analyzer is a cross-platform Flutter application that leverages machine learning to provide advanced cricket field placement and shot analysis. It predicts optimal field placements and shot types based on match context, empowering players, coaches, and analysts with actionable insights.


Features

  • Field Placement Prediction: Suggests the top 9 fielding positions based on batsman, over range, pitch type, and bowler variation.
  • Shot Type Analysis: Identifies the top 3 likely shot types for the given context.
  • Model Accuracy Display: Shows the confidence level of predictions.
  • Interactive Wagon Wheel: Visualizes field placements and shot types.
  • Customizable Visualization: Toggle fielder names and expand/collapse match context.
  • Google & Firebase Auth: Secure sign-in with Google and Firebase Authentication.
  • Multi-Platform: Runs on Android, iOS, Web, Windows, macOS, and Linux.

Screenshots

Field Placement Visualization Dashboard


Getting Started

Prerequisites

  • Flutter SDK (version 3.6.0 or higher)
  • Dart SDK
  • Android Studio or Xcode for running the app on Android/iOS
  • Firebase project (for authentication and analytics)

Installation

  1. Clone the repository:

    git clone https://github.com/thecodemonster1/cric_field_project_1.git
    cd cric_field_project_1
  2. Install dependencies:

    flutter pub get
  3. Configure Firebase:

    • Add your google-services.json to android/app/
    • Add your GoogleService-Info.plist to ios/Runner/
  4. Run the app:

    flutter run

Project Structure

.
├── android/
├── assets/
│   └── images/
│       ├── CricField_Logo_BG.png
│       ├── CricField_Logo_BG2.png
│       └── Google_logo.png
│   └── models/
│       ├── enhanced_shot_placement_model.tflite
│       └── enhanced_shot_type_model.tflite
├── ios/
├── lib/
│   ├── Pages/
│   │   ├── LoginPage.dart
│   │   └── WagonWheelPage.dart
│   ├── Services/
│   │   └── Service.dart
│   └── theme/
│       └── app_theme.dart
├── pubspec.yaml
└── README.md

Key Files


Dependencies


How It Works

  1. Input Match Context: User selects batsman, over range, pitch type, and bowler variation.
  2. Model Prediction: TensorFlow Lite models predict field placements and shot types.
  3. Visualization: Results are shown on an interactive wagon wheel and as ranked lists.
  4. Customization: Users can toggle fielder names and expand/collapse match context.

Testing

To run unit tests:

flutter test

Contributing

Contributions are welcome! Please:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature/your-feature
  3. Commit your changes: git commit -am 'Add new feature'
  4. Push to the branch: git push origin feature/your-feature
  5. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Contact


Thank you for using CricField Analyzer!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published