swatimodi / virtual-background-app Goto Github PK
View Code? Open in Web Editor NEWA Zoom-like real-time virtual background app, made with Portrait segmentation and Google's MediaPipe
License: Apache License 2.0
A Zoom-like real-time virtual background app, made with Portrait segmentation and Google's MediaPipe
License: Apache License 2.0
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!
Hi. I need this code to be running on windows.
Would you kindly advise me how I can build on windows ?
Thanks.
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
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?
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?
Please provide java/android code. @SwatiModi
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.