face-api/types/dom/toNetInput.d.ts

11 lines
464 B
TypeScript
Raw Normal View History

2020-12-23 17:26:55 +01:00
import { NetInput } from './NetInput';
import { TNetInput } from './types';
/**
* Validates the input to make sure, they are valid net inputs and awaits all media elements
* to be finished loading.
*
* @param input The input, which can be a media element or an array of different media elements.
* @returns A NetInput instance, which can be passed into one of the neural networks.
*/
export declare function toNetInput(inputs: TNetInput): Promise<NetInput>;