imgrecog
Version:
Node.js tool to parse and act on images, using the Google Vision and Sightengine APIs.
25 lines (24 loc) • 671 B
TypeScript
import mobilenet = require("@tensorflow-models/mobilenet");
/**
* TensorFlow wrapper.
*/
export declare class TensowFlow {
description: "TensorFlow Local API";
/**
* The MobileNet model.
*/
tfModel: mobilenet.MobileNet;
/**
* Prepare the TensorFlow MobileNet model.
* @param options Program options.
*/
prepare: (options: Options) => Promise<void>;
/**
* Parse the image against the
* @param options Program options.
* @param filepath Image file to be scanned.
*/
parse: (options: Options, filepath: string) => Promise<ImageResult>;
}
declare const _default: TensowFlow;
export default _default;