@types/clmtrackr
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

Installation

npm install --save @types/clmtrackr

Summary

This package contains type definitions for clmtrackr (https://github.com/auduno/clmtrackr).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/clmtrackr.

index.d.ts

interface TrackerParams {
    /** whether to use constant velocity model when fitting (default is true) */
    constantVelocity?: boolean | undefined;
    /** the size of the searchwindow around each point (default is 11) */
    searchWindow?: number | undefined;
    /** whether to use webGL if it is available (default is true) */
    useWebGL?: boolean | undefined;
    /** threshold for when to assume we've lost tracking (default is 0.50) */
    scoreThreshold?: number | undefined;
    /** whether to stop tracking when the fitting has converged (default is false) */
    stopOnConvergence?: boolean | undefined;
    /** object with parameters for facedetection : */
    faceDetection?: {
        /** whether to use web workers for face detection (default is true) */
        useWebWorkers?: boolean | undefined;
    } | undefined;
}

type IPosition = [number, number];

type Model = any;

declare namespace _default {
    class tracker {
        constructor(params?: TrackerParams);

        init(model?: Model): void;

        start(element: HTMLVideoElement | HTMLCanvasElement): void;

        track(element: HTMLVideoElement | HTMLCanvasElement): IPosition[] | false;

        reset(): void;

        getConvergence(): number;

        getCurrentParameters(): number[];

        getCurrentPosition(): IPosition[] | false;

        getScore(): number;

        draw(canvas: HTMLCanvasElement): void;

        setResponseMode(type: "single" | "cycle" | "blend", list: Array<"raw" | "sobel" | "lbp">): void;
    }
    const version: string;
}

export default _default;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by hellochar.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/clmtrackr

Weekly Downloads

16

Version

1.1.3

License

MIT

Unpacked Size

5.68 kB

Total Files

5

Last publish

Collaborators

  • types