UNPKG

image-classifier-ts

Version:

Command line tool to auto-classify images, renaming them with appropriate labels. Uses Node and Google Vision API.

17 lines (16 loc) 837 B
import { Options } from "./args/Args"; import { MapDateToLocation } from "./MapDateToLocation"; import { IOutputter } from "./output/IOutputter"; export declare class MapDateToLocationManager { readonly manualMap: MapDateToLocation; readonly autoMap: MapDateToLocation; readonly options: Options; static fromImageDirectory(imageDir: string, options: Options): MapDateToLocationManager; constructor(manualMap: MapDateToLocation, autoMap: MapDateToLocation, options: Options); /** * Dump the auto generated map from date to location (via exit lat/longs) to disk. * This is mainly for diagnostics, and to allow user to tune their manual file 'mapDateToLocation.csv'. */ dumpAutoMapToDisk(imageDir: string): string; getLocationForFile(filepath: string, outputter: IOutputter): string | null; }