ixfx
    Preparing search index...

    Type Alias FrameProcessorOpts

    Frame procesor options

    type FrameProcessorOpts = {
        cameraConstraints?: Constraints;
        captureCanvasEl?: HTMLCanvasElement;
        postCaptureDraw?: (
            ctx: CanvasRenderingContext2D,
            width: number,
            height: number,
        ) => void;
        showCanvas?: boolean;
        showPreview?: boolean;
    }
    Index

    Properties

    cameraConstraints?: Constraints

    Default constraints to use for the camera source

    captureCanvasEl?: HTMLCanvasElement

    If specified, this canvas will be used for capturing frames to

    postCaptureDraw?: (
        ctx: CanvasRenderingContext2D,
        width: number,
        height: number,
    ) => void

    If specified, this function will be called after ImageData is captured from the intermediate canvs. This allows for drawing on top of the captured image.

    showCanvas?: boolean

    If true, capture canvas will be shown. Default: false

    showPreview?: boolean

    If true, raw source will be shown. Default: false.