Giter Site home page Giter Site logo

0x48lab / flutter_body_detection Goto Github PK

View Code? Open in Web Editor NEW
29.0 1.0 20.0 526 KB

A flutter plugin that uses MLKit on iOS/Android platforms to enable body pose and mask detection using Pose Detection and Selfie Segmentation APIs for both static images and live camera stream.

License: Other

Java 14.36% Kotlin 15.99% Ruby 3.05% Swift 29.87% Objective-C 0.83% Dart 35.90%
flutter mlkit android ios pose-detection selfie-segmentation

flutter_body_detection's People

Contributors

0x48maciek avatar yokmama avatar

Stargazers

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

Watchers

 avatar

flutter_body_detection's Issues

Toggling camera for body detection

I'm enjoying this plugin so far. It appears the camera selection is stored in BodyDetection.startCameraStream. Is there a way to easily toggle front versus back camera within the app? Thanks

Fatal Exeption on low end device

Thank you for your help and answers.
On lowend device I stil get the exeption

I/CameraManagerGlobal(10088): Connecting to camera service
D/CameraRepository(10088): Added camera: 0
I/Camera2CameraInfo(10088): Device Level: INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY
D/UseCaseAttachState(10088): Active and attached use case: [] for camera: 0
D/AndroidRuntime(10088): Shutting down VM
E/AndroidRuntime(10088): FATAL EXCEPTION: main
E/AndroidRuntime(10088): Process: com.u0x48lab.body_detection_example, PID: 10088
E/AndroidRuntime(10088): java.lang.IllegalArgumentException: No available camera can be found.
E/AndroidRuntime(10088): at androidx.camera.core.CameraSelector.filter(CameraSelector.java:107)
E/AndroidRuntime(10088): at androidx.camera.core.CameraSelector.filter(CameraSelector.java:137)
E/AndroidRuntime(10088): at androidx.camera.lifecycle.ProcessCameraProvider.bindToLifecycle(ProcessCameraProvider.java:388)
E/AndroidRuntime(10088): at androidx.camera.lifecycle.ProcessCameraProvider.bindToLifecycle(ProcessCameraProvider.java:274)
E/AndroidRuntime(10088): at com.u0x48lab.body_detection.CameraSession.bindAnalysisUseCase(CameraSession.kt:120)
E/AndroidRuntime(10088): at com.u0x48lab.body_detection.CameraSession.access$bindAnalysisUseCase(CameraSession.kt:17)
E/AndroidRuntime(10088): at com.u0x48lab.body_detection.CameraSession$1.run(CameraSession.kt:32)
E/AndroidRuntime(10088): at android.os.Handler.handleCallback(Handler.java:790)
E/AndroidRuntime(10088): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(10088): at android.os.Looper.loop(Looper.java:164)
E/AndroidRuntime(10088): at android.app.ActivityThread.main(ActivityThread.java:6523)
E/AndroidRuntime(10088): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(10088): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
E/AndroidRuntime(10088): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:857)

Making Camera stream full screen

Hello, I am trying to implement the body detection plugin for my app. I wish to make the camera stream fullscreen. Is there a way to do that?

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.