Interface FingerprintingNodeOptions<T>

interface FingerprintingNodeOptions<T> {
    classifier?: string;
    features?: (keyof {
        [K in string | number | symbol as T[K] extends number
            ? K
            : never]: T[K]
    } | {
        key: string;
        value: ((obj) => number);
    })[];
    frameFilter?: ((frame) => boolean);
    locked?: boolean;
    name?: string;
    objectFilter?: ((object, frame?) => boolean);
    serializeContext?: boolean;
    uid?: string;
    valueFilter?: ((pos) => boolean);
}

Type Parameters

  • T extends DataObject = DataObject

Hierarchy (view full)

Properties

classifier?: string

Fingerprint classifier

Default

""
features?: (keyof {
    [K in string | number | symbol as T[K] extends number
        ? K
        : never]: T[K]
} | {
    key: string;
    value: ((obj) => number);
})[]

A list of features to include in the fingerprint Only features of type number are allowed

frameFilter?: ((frame) => boolean)

Frame filter to specify what frames are processed by this node

Type declaration

    • (frame): boolean
    • Parameters

      • frame: DataFrame

      Returns boolean

locked?: boolean
name?: string

User friendly name of the node Used for querying a node by its name.

objectFilter?: ((object, frame?) => boolean)

Object filter to specify what data object are processed by this node

Type declaration

    • (object, frame?): boolean
    • Parameters

      • object: DataObject
      • Optional frame: DataFrame

      Returns boolean

serializeContext?: boolean

Serialize contextual information about fingerprint features This option uses more memory.

uid?: string

Manually set the unique identifier of the node

valueFilter?: ((pos) => boolean)

Filter on relative positions

Type declaration

    • (pos): boolean
    • Parameters

      • pos: RelativePosition<number, Unit>

      Returns boolean