GithubHelp home page GithubHelp logo

amrabdelhamed26 / object_detection Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 18.64 MB

Integration Of Machine Learning Model (detect objects) with Flutter Application uses real time detection

Kotlin 1.40% Batchfile 10.76% Swift 4.43% Objective-C 0.42% Dart 82.99%

object_detection's Introduction

Object Recognition

Object Recognition is a project that utilizes AI to recognize various objects using the MobileNet model. The goal of this project is to provide assistance to visually impaired individuals by providing audio descriptions of their surroundings.

Features

  • Object recognition using the MobileNet model
  • Sound output to describe objects in the scene
  • Responsive UI using media queries
  • Splash screen for a polished user experience
  • Camera stream for real-time object detection

Getting Started

Prerequisites

Installation

  1. Clone the repository:

  2. Navigate to the project directory:

  3. Install dependencies:

  4. Connect your device or start an emulator.

  5. Run the application:

Troubleshooting

If you encounter an error related to TFLite not compiling the model, you may need to modify the TFLite package configuration. Follow these steps:

  1. Locate the TFLite package in your project's dependencies. The package should be specified in your pubspec.yaml file.

  2. Open the TFLite package:

  3. Replace compile with implementation in the build.gradle file.

  4. Save the changes and re-run the application.

Contributing

Contributions to Object Recognition for Blind People are welcome! Here are a few ways you can contribute:

  • Report bugs or issues
  • Suggest new features or enhancements
  • Submit pull requests

Please read our Contribution Guidelines for more information on how to contribute.

object_detection's People

Contributors

amrabdelhamed26 avatar

Stargazers

Mert Salık avatar Abdelrrahman Elhaddad avatar Abdallah Ahmed avatar

Watchers

 avatar

object_detection's Issues

Error When Using Tflite

I/flutter ( 5335): errrrrror
D/RenderScript HIDL Adaptation( 5335): IRenderScriptDevice::getService()
D/RenderScript HIDL Adaptation( 5335): IRenderScriptDevice::getService() returned 0x7996ec5e20
D/RenderScript HIDL Adaptation( 5335): HIDL successfully loaded.
E/RenderScript( 5335): Failed loading RS driver: dlopen failed: library "libRSDriverArm.so" not found
E/RenderScript( 5335): Failed to load runtime libRSDriverArm.so, loading default
D/ple.objectreco( 5335): Successfully queried cache dir: /data/user_de/0/com.example.objectreco2/code_cache
D/RenderScript( 5335): Setting cache dir: /data/user_de/0/com.example.objectreco2/code_cache
E/flutter ( 5335): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(Failed to run model, Attempt to invoke virtual method 'org.tensorflow.lite.Tensor org.tensorflow.lite.Interpreter.getInputTensor(int)' on a null object reference, java.lang.NullPointerException: Attempt to invoke virtual method 'org.tensorflow.lite.Tensor org.tensorflow.lite.Interpreter.getInputTensor(int)' on a null object reference
E/flutter ( 5335): at sq.flutter.tflite.TflitePlugin.feedInputTensor(TflitePlugin.java:332)
E/flutter ( 5335): at sq.flutter.tflite.TflitePlugin.feedInputTensorFrame(TflitePlugin.java:424)
E/flutter ( 5335): at sq.flutter.tflite.TflitePlugin$RunModelOnFrame.(TflitePlugin.java:561)
E/flutter ( 5335): at sq.flutter.tflite.TflitePlugin.onMethodCall(TflitePlugin.java:117)
E/flutter ( 5335): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)
E/flutter ( 5335): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/flutter ( 5335): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
E/flutter ( 5335): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/flutter ( 5335): at android.os.Handler.handleCallback(Handler.java:938)
E/flutter ( 5335): at android.os.Handler.dispatchMessage(Handler.java:99)
E/flutter ( 5335): at android.os.Looper.loopOnce(Looper.java:226)
E/flutter ( 5335): at android.os.Looper.loop(Looper.java:313)
E/flutter ( 5335): at android.app.ActivityThread.main(ActivityThread.java:8751)
E/flutter ( 5335): at java.lang.reflect.Method.invoke(Native Method)
E/flutter ( 5335): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
E/flutter ( 5335): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
E/flutter ( 5335): , null)
E/flutter ( 5335): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:653:7)
E/flutter ( 5335): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:315:18)
E/flutter ( 5335):
E/flutter ( 5335): #2 Tflite.runModelOnFrame (package:tflite/tflite.dart:73:12)
E/flutter ( 5335):
E/flutter ( 5335): #3 ScanController.objectRecoginition (package:objectreco2/scan_controller.dart:100:24)
E/flutter ( 5335):
E/flutter ( 5335):
W/System ( 5335): A resource failed to call destroy.
W/System ( 5335): A resource failed to call destroy.
W/System ( 5335): A resource failed to call destroy.
I/ple.objectreco( 5335): Background concurrent copying GC freed 399(96KB) AllocSpace objects, 14(19MB) LOS objects, 49% free, 12MB/24MB, paused 1.427ms,5.713ms total 37.674ms
I/ple.objectreco( 5335): Background concurrent copying GC freed 380(96KB) AllocSpace objects, 14(19MB) LOS objects, 50% free, 14MB/28MB, paused 921us,17.670ms total 73.937ms

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.