@dannadori/mediapipe-mix2-worker-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

MediapipeMix2

image

This module combine the three mediapipe models(face, hand, pose).

Install

## install
$ npm install @dannadori/mediapipe-mix2-worker-js@

example

examples described here is in this repository.

note

If you specify the loader for model and wasm in webpack.config.js, webpack automatically generate url for module to load models and wasm.

    module: {
        rules: [
          ...
            { test: /\.bin$/, type: "asset/resource" },
            { test: /\.wasm$/, type: "asset/resource" },
            ...
        ],
    },

If you don't use webpack, you can set url for the models and wasm.

        const manager = new MediapipeMix2WorkerManager();
        const config = await manager.generateDefaultConfig({
              wasmUrl: "<URL>",
              palmDetectorModelTFLiteUrl: "<URL>",
              handLandmarkLiteTFLiteUrl: "<URL>",
              faceDetectorModelTFLiteUrl: "<URL>",
              faceLandmarkModelTFLiteUrl: "<URL>",
              poseDetectorModelTFLiteUrl: "<URL>",
              poseLandmarkModelTFLiteUrl: "<URL>",
        });

If you want to use simply, use MediaPipe Mix.

Readme

Keywords

none

Package Sidebar

Install

npm i @dannadori/mediapipe-mix2-worker-js

Weekly Downloads

2

Version

1.0.6

License

ISC

Unpacked Size

33 MB

Total Files

30

Last publish

Collaborators

  • dannadori