Coder Social home page Coder Social logo

swatimodi / virtual-background-app Goto Github PK

View Code? Open in Web Editor NEW
41.0 4.0 21.0 185.74 MB

A Zoom-like real-time virtual background app, made with Portrait segmentation and Google's MediaPipe

License: Apache License 2.0

Starlark 7.51% Dockerfile 0.06% Shell 0.17% Python 1.92% C++ 82.72% C 0.84% Java 2.95% HTML 0.05% JavaScript 0.07% Objective-C 1.70% Objective-C++ 2.02%
portrait-segmentation virtual-backgrounds mediapipe desktop custom-component realtime google-mediapipe android-app

virtual-background-app's People

Contributors

swatimodi 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

virtual-background-app's Issues

Resolution is low

I build the application according to the guide, but the resolution is so low.

by the way, my phone is xiaomi10, and the resolution of my phone is 1920*1080p.

Any solution? pls!

Calculator::Open() for node "TfLiteInferenceCalculator"

Using the following command
GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/portrait_segmentation/portrait_segmentation_gpu --calculator_graph_config_file=mediapipe/graphs/portrait_segmentation/portrait_segmentation.pbtxt

Here is the result
demo_run_graph_main_gpu.cc:197] Failed to run the graph: Graph has errors:
Calculator::Open() for node "TfLiteInferenceCalculator" failed: [GL_INVALID_ENUM]: An unacceptable value is specified for an enumerated argument.: glBufferData in external/org_tensorflow/tensorflow/lite/delegates/gpu/gl/gl_buffer.h:251

Undeclared Indentifier "ValueOrDie"

mediapipe/calculators/image/background_masking_calculator.cc:63:36: error: use of undeclared identifier 'ValueOrDie'
background = cv::imread(status,ValueOrDie() 1);

I am getting this error in my bazel build. Any ideas why?

Tracing and profiling in mediapipe

I have sovle the problem of low resolution, but I met a new problem. There is a 10s delay of the vedio. I want to trace the computing time of each node to find the causes. So I follow the instructions of this link https://google.github.io/mediapipe/tools/tracing_and_profiling.html#enabling-tracing-and-profiling. But it doesn't work.
I guess I put the following configure in the wrong place:
profiler_config {
trace_enabled: true
enable_profiler: true
trace_log_interval_count: 200
trace_log_path: "/sdcard/Download/"
}
I first put it in the the CalculatorGraphConfig (in /mediapipe/framework/calculator.proto) . Then it failed to compile.
Then I put it in the graph file(portrait_segmentation.pbtxt) and this time the compiling is ok. But I still didn't get the tracing files.
Do you have any idea about this problem?

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.