Code Monkey home page Code Monkey logo

virtual-bg's Introduction

virtual-bg's People

Contributors

akhil-rana avatar

Stargazers

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

Watchers

 avatar  avatar

virtual-bg's Issues

while calling segmentBackground method i am facing issue

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

When i am trying to use for multiple videos at a time i am getting errorRuntimeError: 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)

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)

Support for multiple streams at a time

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)

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.