toNetInput.d.ts 464 B

12345678910
  1. import { NetInput } from './NetInput';
  2. import { TNetInput } from './types';
  3. /**
  4. * Validates the input to make sure, they are valid net inputs and awaits all media elements
  5. * to be finished loading.
  6. *
  7. * @param input The input, which can be a media element or an array of different media elements.
  8. * @returns A NetInput instance, which can be passed into one of the neural networks.
  9. */
  10. export declare function toNetInput(inputs: TNetInput): Promise<NetInput>;