Comments (5)
This is a high priority work item for us. We will hopefully have an update for you soon.
from mediapipe-samples.
I am able to run our Tasks API in a Web Worker. Can you share your example somewhere?
Here are my two files: https://gist.github.com/schmidt-sebastian/bb9b06988c8d4e09370770fbe3e9478f
from mediapipe-samples.
@schmidt-sebastian, this is the link to my Electron demo repository. Just connect a webcam an run it. It should work out of the box. The general issue that I have is that the frame rate is not good enough at 1280 x 720. So I hope the Web Worker solution will speed it up.
https://github.com/berkon/background-removal-new
Is there a new / specific version of the library which I have to use, or do I just need to apply your example code? BTW: The application where I need too add this functionality runs on plain JS. Is there a non-Typescript way to use it?
from mediapipe-samples.
I might be missing something here, but I don't see the code that transfers the image from the webcam to the worker. You also need to transfer the result back. The link I pasted shows you how to do this via ImageData
, but using ImageBitmap
would be much faster.
from mediapipe-samples.
The example which I've posted is the initial way I implemented it (without Worker, because I couldn't get it to work).
from mediapipe-samples.
Related Issues (20)
- LLM Inference Android Sample Issue: collectIndexed in sendMessage Causes Duplicate Collections on Multiple Invocations
- Can't Serve Files Locally in Python Due to CORS
- Image Segmentation Live Stream Mode for Python
- Crash when running Android text classification sample with MobileBERT. HOT 4
- Gesture Recognizer example with Raspberry Pi performance issues HOT 2
- Synchronize this proposal with the language steering group's amendment for the Swift 6 language mode, as [announced](https://forums.swift.org/t/amendment-se-0192-handling-future-enum-cases/68321) and [implemented for Swift 6.0](https://github.com/apple/swift/pull/73481).
- Can mediapipe-models be used for free for commercial purposes ? HOT 1
- RuntimeWarning: overflow encountered in cast v.numpy().astype("float16").tofile(output_bin_file) HOT 2
- Android LLM Inference Conversion guide for models fine tuned with keras nlp
- LLM Models other than Gemma , falcon, phi, stablelm HOT 1
- About face_detector performance issues in android HOT 3
- How to get LLM model performance? HOT 1
- Gemma-1.1-2B-it-cpu-int4.bin generating junk response in phone. HOT 4
- Gesture recognizer does not run on the emulator HOT 1
- LLM inference error when trying to run model locally, but works on Google's site HOT 1
- Native binaries are not compliant with Google Play 64-bit requirement HOT 1
- [Face Detection LandMark] Add a confidence score to the eye landmarks when wearing a black glasses
- Support for armeabi-v7a (32-bit ARM) the LLM Inference API
- The model is not a valid Flatbuffer buffer
- Unable to detect hand pose estimation for Android live app
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mediapipe-samples.