akhil-rana / virtual-bg Goto Github PK
View Code? Open in Web Editor NEWEasily add virtual background effects to your video/camera input inside any web browser
License: MIT License
Easily add virtual background effects to your video/camera input inside any web browser
License: MIT License
ERROR Error: Uncaught (in promise): RuntimeError: abort(Module.arguments has been replaced with plain arguments_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)) at Error
at jsStackTrace (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:69361)
at stackTrace (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:69537)
at abort (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:43094)
at Object.get (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:24082)
at https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:23905
at qa.h (http://localhost:4200/vendor.js:29137:414)
at ta (http://localhost:4200/vendor.js:29101:299)
at ua.next (http://localhost:4200/vendor.js:29102:91)
at http://localhost:4200/vendor.js:29127:619
at new ZoneAwarePromise (http://localhost:4200/polyfills.js:4544:29)
RuntimeError: abort(Module.arguments has been replaced with plain arguments_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)) at Error
at jsStackTrace (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:69361)
at stackTrace (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:69537)
at abort (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:43094)
at Object.get (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:24082)
at https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:23905
at qa.h (http://localhost:4200/vendor.js:29137:414)
at ta (http://localhost:4200/vendor.js:29101:299)
at ua.next (http://localhost:4200/vendor.js:29102:91)
at http://localhost:4200/vendor.js:29127:619
at new ZoneAwarePromise (http://localhost:4200/polyfills.js:4544:29)
at abort (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:43125)
at Object.get (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:24082)
at https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:23905
at qa.h (http://localhost:4200/vendor.js:29137:414)
at ta (http://localhost:4200/vendor.js:29101:299)
at ua.next (http://localhost:4200/vendor.js:29102:91)
at http://localhost:4200/vendor.js:29127:619
at new ZoneAwarePromise (http://localhost:4200/polyfills.js:4544:29)
at Y (http://localhost:4200/vendor.js:29127:389)
at http://localhost:4200/vendor.js:29137:254
at resolvePromise (http://localhost:4200/polyfills.js:4328:31)
at http://localhost:4200/polyfills.js:4235:17
at rejected (http://localhost:4200/vendor.js:378694:89)
at _ZoneDelegate.invoke (http://localhost:4200/polyfills.js:3489:26)
at Object.onInvoke (http://localhost:4200/vendor.js:440180:33)
at _ZoneDelegate.invoke (http://localhost:4200/polyfills.js:3488:52)
at Zone.run (http://localhost:4200/polyfills.js:3251:43)
at http://localhost:4200/polyfills.js:4392:36
at _ZoneDelegate.invokeTask (http://localhost:4200/polyfills.js:3523:31)
at Object.onInvokeTask (http://localhost:4200/vendor.js:440167:33)
ERROR Error: Uncaught (in promise): RuntimeError: abort(Module.arguments has been replaced with plain arguments_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)) at Error
at jsStackTrace (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:69361)
at stackTrace (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:69537)
at abort (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:43094)
at Object.get (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:24082)
at https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:23905
at qa.h (http://localhost:4200/vendor.js:29137:414)
at ta (http://localhost:4200/vendor.js:29101:299)
at ua.next (http://localhost:4200/vendor.js:29102:91)
at http://localhost:4200/vendor.js:29127:619
at new ZoneAwarePromise (http://localhost:4200/polyfills.js:4544:29)
RuntimeError: abort(Module.arguments has been replaced with plain arguments_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)) at Error
at jsStackTrace (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:69361)
at stackTrace (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:69537)
at abort (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:43094)
at Object.get (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:24082)
at https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:23905
at qa.h (http://localhost:4200/vendor.js:29137:414)
at ta (http://localhost:4200/vendor.js:29101:299)
at ua.next (http://localhost:4200/vendor.js:29102:91)
at http://localhost:4200/vendor.js:29127:619
at new ZoneAwarePromise (http://localhost:4200/polyfills.js:4544:29)
at abort (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:43125)
at Object.get (https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:24082)
at https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.js:9:23905
at qa.h (http://localhost:4200/vendor.js:29137:414)
at ta (http://localhost:4200/vendor.js:29101:299)
at ua.next (http://localhost:4200/vendor.js:29102:91)
at http://localhost:4200/vendor.js:29127:619
at new ZoneAwarePromise (http://localhost:4200/polyfills.js:4544:29)
at Y (http://localhost:4200/vendor.js:29127:389)
at http://localhost:4200/vendor.js:29137:254
at resolvePromise (http://localhost:4200/polyfills.js:4328:31)
at http://localhost:4200/polyfills.js:4235:17
at rejected (http://localhost:4200/vendor.js:378694:89)
at _ZoneDelegate.invoke (http://localhost:4200/polyfills.js:3489:26)
at Object.onInvoke (http://localhost:4200/vendor.js:440180:33)
at _ZoneDelegate.invoke (http://localhost:4200/polyfills.js:3488:52)
at Zone.run (http://localhost:4200/polyfills.js:3251:43)
at http://localhost:4200/polyfills.js:4392:36
at _ZoneDelegate.invokeTask (http://localhost:4200/polyfills.js:3523:31)
at Object.onInvokeTask (http://localhost:4200/vendor.js:440167:33)
as title
There's no function or simple way to remove the applied effects once applied.
WIP: removeFilters() function
I am trying to use this package in react? Is there anything else that has to be done other than what is in the document? The canvas is just blank after calling apply blur.
I am trying to blur or applying background image for that i am using this lib.But when i am calling segmentBackground(this.inputVideoElement, this.outputCanvasElement);
i am facing below issue.Can you check and please suggest solution to resolve this issue
ERROR Error: Uncaught (in promise): ReferenceError: SelfieSegmentation is not defined
ReferenceError: SelfieSegmentation is not defined
at virtual-bg.js:31:28
at Generator.next ()
at asyncGeneratorStep (asyncToGenerator.js:3:1)
at _next (asyncToGenerator.js:25:1)
at asyncToGenerator.js:32:1
at new ZoneAwarePromise (zone.js:1429:1)
at asyncToGenerator.js:21:1
at _segmentBackground (virtual-bg.js:54:2)
at segmentBackground (virtual-bg.js:20:1)
at AppComponent.ngAfterViewInit (app.component.ts:34:22)
at resolvePromise (zone.js:1211:1)
at zone.js:1118:1
at zone.js:1134:1
at asyncGeneratorStep (asyncToGenerator.js:6:1)
at _next (asyncToGenerator.js:25:1)
at asyncToGenerator.js:32:1
at new ZoneAwarePromise (zone.js:1429:1)
at asyncToGenerator.js:21:1
at _segmentBackground (virtual-bg.js:54:2)
at segmentBackground (virtual-bg.js:20:1)
steps:
import { segmentBackground, applyBlur, applyImageBackground } from'virtual-bg';
this.inputVideoElement = this.document.getElementById("inputVideoElement")
this.outputCanvasElement = this.document.getElementById('output_canvas');
console.log(this.inputVideoElement,this.outputCanvasElement);
segmentBackground(this.inputVideoElement, this.outputCanvasElement);
Thanks in advance
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.