image-classifier-ts
Version:
Command line tool to auto-classify images, renaming them with appropriate labels. Uses Node and Google Vision API.
19 lines (18 loc) • 953 B
TypeScript
import { ImageLocation } from "../model/ImageLocation";
import { Options } from "./args/Args";
import { IOutputter } from "./output/IOutputter";
import { SimpleDate } from "./SimpleDate";
export declare const AUTO_DATE_MAP_CSV_FILENAME = "mapDateToLocation.auto.csv";
export declare class MapDateToLocation {
static parseFromCsvAtDirectory(pathToDirectory: string, options: Options): MapDateToLocation;
static parseFromCsvAtPath(filepath: string, options: Options): MapDateToLocation;
private static isComment;
private mapDateToLocations;
private mapExactDateToLocation;
writeToCsvAtPath(filePath: string): void;
removeFromDisk(filePath: string): void;
private addLocationForDate;
addLocationForDateAllowOverwrite(date: SimpleDate, location: ImageLocation): void;
getLocationForDate(date: SimpleDate): ImageLocation | null;
getLocationForFile(filepath: string, outputter: IOutputter): ImageLocation | null;
}