Coder Social home page Coder Social logo

zhangyong7887 / virtual-background Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xintao222/virtual-background

0.0 0.0 0.0 23.49 MB

webGL+canvas虚拟背景研究

Home Page: https://ouchunrun.github.io/virtual-background/index.html

JavaScript 53.86% TypeScript 40.43% CSS 1.59% HTML 4.12%

virtual-background's Introduction

使用说明

引用文件

<script src="lib/tflite/tflite.js"></script>
<script src="lib/tflite/tflite-simd.js"></script>
<script src="lib/tflite/pipelines.js"></script>

参考

FAQ

  • 1.生成后的canvas人像显示尺寸比较小,与img不一致

    • 原因:canvas的样式的height和width跟sourcePlayback设置可能不一样
  • 2.tflite RuntimeError: memory access out of bounds

    • 原因:没有调用newSelectedTFLite._loadModel(model.byteLength) 等方法
  • 3.canvas2dCpu配置处理后的结果是 一个image+一个canvas,两个是单独的,这样重新从canvas里面取流就取不到背景图片

  • 4.webGL2处理后是单独的canvas,不需要叠加img,但它使用的是openGL算法,需要测试其兼容性

  • 5.Uncaught (in promise) RuntimeError: abort(CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 41 47 46 7a @+0). Build with -s ASSERTIONS=1 for more info.

    • 原因:wasm 文件不正确
  • 6.INVALID_VALUE: tex(Sub)Image2D: video visible size is empty

    • Cause: video没有play

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.