Skip to content

MegrurNiftiyev/flutter_computer_vision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter Computer Vision

This app is built to test AI object detection in Flutter by detecting people in an image.
It uses the Counting people Computer Vision Model by @pequi on Roboflow.
Technologies used in this project include Flutter and Roboflow AI Model.

Links

Download APK Roboflow Model

Packages

dio image_picker permission_handler url_launcher flutter_dotenv mobx flutter_mobx widgets_to_image photo_view fl_chart dashed_border

Screenshots

Empty State Image Picker Dialog Before Detection - Group Detection Results - Group

Zoom View - Group Detection Results - Group (Expanded) Detection Results - Street Detection Results - Bus

Zoom View - Bus No People - Mountain No People - Forest About Bottom Sheet

Project Structure

lib
│   main.dart
│
└───src
    ├───core
    │   ├───components
    │   │       detection_info_bottom_sheet.dart
    │   │       image_picker_alert_dialog.dart
    │   │
    │   ├───config
    │   │       app_config.dart
    │   │
    │   ├───constants
    │   │       app_border_radiuses.dart
    │   │       app_paddings.dart
    │   │
    │   ├───exceptions
    │   │       app_exception.dart
    │   │
    │   ├───extensions
    │   │       detection_capture_scheduler_extension.dart
    │   │       detection_image_boxes_extension.dart
    │   │       detection_image_file_extension.dart
    │   │       detection_object_ui_extension.dart
    │   │       extensions_export.dart
    │   │
    │   ├───helpers
    │   │       confidence_color_helper.dart
    │   │
    │   ├───services
    │   │       env_service.dart
    │   │       image_picker_service.dart
    │   │       permission_service.dart
    │   │
    │   └───theme
    │           app_colors.dart
    │           app_theme.dart
    │
    └───features
        └───detection_view
            ├───model
            │       detection_object.dart
            │       request_model.dart
            │       response_model.dart
            │
            ├───service
            │       detection_service.dart
            │
            ├───view
            │       detection_view.dart
            │
            ├───viewmodel
            │       detection_viewmodel.dart
            │       detection_viewmodel.g.dart
            │
            └───widgets
                    confidence_metric_card.dart
                    detected_object_list_tile.dart
                    detection_image_with_boxes.dart
                    donut_confidence_chart.dart
                    metric_card.dart
                    zoomable_detection_image.dart

Environment Variables

Before running the app, create a .env file in the project root and fill it with your Roboflow credentials/config values. These values are required for flutter run to work properly.

ROBOFLOW_API_KEY=

ROBOFLOW_WORKSPACE_SLUG=

ROBOFLOW_WORKFLOW_ID=

Installation

  1. Clone the repository:
    git clone https://github.com/MegrurNiftiyev/flutter_computer_vision.git

  2. Install dependencies:
    dart pub get

  3. Run the application:
    flutter run

About

Object detection mobile application built with MVVM architecture in Flutter using Roboflow API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages