{"id":25556879,"url":"https://github.com/kevin-doolaeghe/ai_image_analysis","last_synced_at":"2026-04-29T16:39:00.602Z","repository":{"id":214484300,"uuid":"736080898","full_name":"kevin-doolaeghe/ai_image_analysis","owner":"kevin-doolaeghe","description":"AI Image Analysis App - Flutter","archived":false,"fork":false,"pushed_at":"2024-03-23T08:49:29.000Z","size":8067,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T11:37:41.442Z","etag":null,"topics":["firebase","flutter","image-analysis","tflite"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevin-doolaeghe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-26T23:56:02.000Z","updated_at":"2024-08-05T20:18:59.000Z","dependencies_parsed_at":"2023-12-28T13:58:16.161Z","dependency_job_id":"cd968adf-e3f0-4ba8-80a2-7ee69e8584a9","html_url":"https://github.com/kevin-doolaeghe/ai_image_analysis","commit_stats":null,"previous_names":["kevin-doolaeghe/ai_image_analysis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kevin-doolaeghe/ai_image_analysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin-doolaeghe%2Fai_image_analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin-doolaeghe%2Fai_image_analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin-doolaeghe%2Fai_image_analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin-doolaeghe%2Fai_image_analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevin-doolaeghe","download_url":"https://codeload.github.com/kevin-doolaeghe/ai_image_analysis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin-doolaeghe%2Fai_image_analysis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271247510,"owners_count":24725916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["firebase","flutter","image-analysis","tflite"],"created_at":"2025-02-20T14:56:08.562Z","updated_at":"2026-04-29T16:39:00.571Z","avatar_url":"https://github.com/kevin-doolaeghe.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Image Analysis - Flutter\n\n## Author\n\nKevin DOOLAEGHE\n\n## References\n\n* [Firebase console](https://console.firebase.google.com/u/0/?pli=1)\n* [Firebase CLI](https://firebase.google.com/docs/cli#setup_update_cli)\n* [Google Docs - Add Firebase to your Flutter application](https://firebase.google.com/docs/flutter/setup?platform=ios)\n* [Google Docs - Get Started with Realtime Database](https://firebase.google.com/docs/database/flutter/start)\n* [Google Codelab - Get to know Firebase for Flutter](https://firebase.google.com/codelabs/firebase-get-to-know-flutter#0)\n* [Medium - AI apps with machine learning in flutter](https://medium.com/@tendallas/ai-apps-with-machine-learning-in-flutter-7927fb2410b9)\n* [Medium - Flutter Web and Machine Learning](https://medium.com/codechai/flutter-web-and-machine-learning-64ab1f315001)\n* [Utilizing JS Library for Flutter Web](https://blog.stackademic.com/utilizing-js-library-for-flutter-web-c683c590927f)\n* [Flutter - Conditional dependency imports](https://github.com/simolus3/drift/issues/658#issuecomment-648938968)\n* [TensorFlow - TFJS Samples](https://www.tensorflow.org/js/models?hl=fr)\n\n## Setup a Flutter project with Firebase\n\n### Setup a new Flutter project\n\n* Create a new project called `ai_image_analysis` :\n\n```\nflutter create ai_image_analysis\n```\n\n* Open the created directory with your favorite IDE (e.g. Visual Studio Code) :\n\n```\ncd .\\ai_image_analysis\\\ncode .\n```\n\n### Setup the Git repository\n\n* Initialize a new Git repository :\n\n```\ngit init\n```\n\n* Add and commit all new files :\n\n```\ngit add .\ngit commit -m \"Initialized project\"\n```\n\n* Link your local repository to a freshly created remote repository on Git, then push the project :\n\n```\ngit remote add origin https://github.com/kevin-doolaeghe/ai_image_analysis.git\ngit push --set-upstream origin master\n```\n\n### Setup the Firebase CLI on your local machine\n\nTo use `npm` (the Node Package Manager) to install the Firebase CLI, follow these steps:\n\n1. Install [Node.js](https://www.nodejs.org/) using [nvm-windows](https://github.com/coreybutler/nvm-windows) (the Node Version Manager). Installing Node.js automatically installs the `npm` command tools.\n\n2. Install the Firebase CLI via npm by running the following command:\n\n```\nnpm install -g firebase-tools\n```\n\n3. Log into Firebase using your Google account :\n\n```\nfirebase login\n```\n\n### Setup the FlutterFire CLI on your local machine\n\n1. Install the FlutterFire CLI by running the following command from any directory :\n\n```\ndart pub global activate flutterfire_cli\n```\n\n2. If the following warning appears, you must add the `pub` executables folder to the `Path` environment variable :\n\n\u003e Warning: Pub installs executables into C:\\Users\\Kevin\\AppData\\Local\\Pub\\Cache\\bin, which is not on your path.\n\u003e You can fix that by adding that directory to your system's \"Path\" environment variable.\n\n### Configure your Firebase project \n\n* Create a new project on [Firebase console](https://console.firebase.google.com/u/0/?pli=1).\n\n* Link your Firebase project to the Flutter project :\n\n```\nflutterfire configure --project=ai-image-analysis\n```\n\n### Initialize Firebase in your application\n\n* Add the `firebase_core` plugin to the project :\n\n```\nflutter pub add firebase_core\n```\n\n* From your Flutter project directory, run the following command to ensure that your Flutter app's Firebase configuration is up-to-date :\n\n```\nflutterfire configure\n```\n\n* In your `lib/main.dart` file, import the Firebase core plugin and the configuration file you generated earlier:\n\n```\nimport 'package:firebase_core/firebase_core.dart';\nimport 'firebase_options.dart';\n```\n\n* Also in your `lib/main.dart` file, initialize Firebase using the DefaultFirebaseOptions object exported by the configuration file:\n\n```\nawait Firebase.initializeApp(\n  options: DefaultFirebaseOptions.currentPlatform,\n);\n```\n\n### Rebuild the project\n\n* Run the following command, then select your testing environment :\n\n```\nflutter run\n```\n\n### Push your project to Git\n\n* Commit and push your changes to Git :\n\n```\ngit add .\ngit commit -m \"Linked Firebase project\"\ngit push\n```\n\n## Using Firebase Realtime Database from a Flutter application (CRUD)\n\n* Example of `create` method :\n\n```\n  Future\u003cvoid\u003e create(String key, Object? value) async {\n    DatabaseReference ref = FirebaseDatabase.instance.ref(key);\n    await ref.set(value);\n  }\n```\n\nNote : The `create` method assigns a value to a specific node. Alternatively, you can use the `push` method to create a node with an auto-generated (timestamp-based) key :\n\n```\n  Future\u003cvoid\u003e push(String key, Object? value) async {\n    DatabaseReference ref = FirebaseDatabase.instance.ref(key);\n    await ref.push().set(value);\n  }\n```\n\n* Example of `read` method :\n\n```\n  Future\u003cObject?\u003e read(String key) async {\n    DatabaseReference ref = FirebaseDatabase.instance.ref();\n    final snapshot = await ref.child(key).get();\n    if (!snapshot.exists) return null;\n    return snapshot.value;\n  }\n```\n\n* Example of `update` method :\n\n```\n  Future\u003cvoid\u003e update(String key, Map\u003cString, Object\u003e value) async {\n    DatabaseReference ref = FirebaseDatabase.instance.ref(key);\n    await ref.update(value);\n  }\n```\n\n* Example of `delete` method :\n\n```\n  Future\u003cvoid\u003e delete(String key) async {\n    DatabaseReference ref = FirebaseDatabase.instance.ref();\n    await ref.child(key).remove();\n  }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevin-doolaeghe%2Fai_image_analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevin-doolaeghe%2Fai_image_analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevin-doolaeghe%2Fai_image_analysis/lists"}