GithubHelp home page GithubHelp logo

yashk2000 / hand-detection Goto Github PK

View Code? Open in Web Editor NEW
18.0 4.0 3.0 69.84 MB

Android application which uses Mediapipe to detect hands in a live stream from a phone camera📱

Java 100.00%
android java mediapipe handdetection detect-hands aar android-application phone-camera

hand-detection's Introduction

Hand-Detection

This is an Android application which uses Mediapipe to detect hands in a live stream from a phone camera.

In order to run the app, clone it.

git clone https://github.com/yashk2000/Hand-Detection.git`

In order to run Mediapipe apps using gradle, we need to build an aar for the desired graph being used. Follow the steps metioned here to build and aar. Once the aar is made, keep it in the libs folder, app/src/main/libs/.

Then open the app in android studio. To get the app running, android-ndk also needs to be setup. Once that is setup from the settings, menu the app can be built successfully.

The app uses the phone GPU to detect hands in real time with a good accuracy.

The APK can be downloaded directly and installed from the APK folder in the repo.

Here is how the app looks in action:

hand-detection's People

Contributors

yashk2000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hand-detection's Issues

I have an issue when I install application after camera access, app crashed, error: not found ValidatedGraphConfig

2021-09-29 21:36:51.191 6151-6203/? E/native: E20210930 09:36:51.191642 6203 graph.cc:470] ValidatedGraphConfig Initialization failed.
No registered object with name: HandDetectionSubgraph; Unable to find Calculator "HandDetectionSubgraph"
No registered object with name: DetectionsToRenderDataCalculator; Unable to find Calculator "DetectionsToRenderDataCalculator"
No registered object with name: RectToRenderDataCalculator; Unable to find Calculator "RectToRenderDataCalculator"
No registered object with name: AnnotationOverlayCalculator; Unable to find Calculator "AnnotationOverlayCalculator"
2021-09-29 21:36:51.196 6151-6203/? D/GlThread: Stopping GL thread ExternalTextureConverter
2021-09-29 21:36:51.198 6151-6203/? E/AndroidRuntime: FATAL EXCEPTION: ExternalTextureConverter
Process: com.yashk2000.handdetection, PID: 6151
com.google.mediapipe.framework.MediaPipeException: not found: ValidatedGraphConfig Initialization failed.
No registered object with name: HandDetectionSubgraph; Unable to find Calculator "HandDetectionSubgraph"
No registered object with name: DetectionsToRenderDataCalculator; Unable to find Calculator "DetectionsToRenderDataCalculator"
No registered object with name: RectToRenderDataCalculator; Unable to find Calculator "RectToRenderDataCalculator"
No registered object with name: AnnotationOverlayCalculator; Unable to find Calculator "AnnotationOverlayCalculator"
at com.google.mediapipe.framework.Graph.nativeStartRunningGraph(Native Method)
at com.google.mediapipe.framework.Graph.startRunningGraph(Graph.java:324)
at com.google.mediapipe.components.FrameProcessor.startGraph(FrameProcessor.java:553)
at com.google.mediapipe.components.FrameProcessor.maybeAcceptNewFrame(FrameProcessor.java:421)
at com.google.mediapipe.components.FrameProcessor.onNewFrame(FrameProcessor.java:439)
at com.google.mediapipe.components.ExternalTextureConverter$RenderThread.renderNext(ExternalTextureConverter.java:403)
at com.google.mediapipe.components.ExternalTextureConverter$RenderThread.lambda$onFrameAvailable$0$ExternalTextureConverter$RenderThread(ExternalTextureConverter.java:338)
at com.google.mediapipe.components.-$$Lambda$ExternalTextureConverter$RenderThread$IXJjtE68JMV2CMJNQcFYhTUqhj8.run(Unknown Source:4)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:166)
at com.google.mediapipe.glutil.GlThread.run(GlThread.java:141)

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.