image-classifier-ts
Version:
Command line tool to auto-classify images, renaming them with appropriate labels. Uses Node and Google Vision API.
16 lines (15 loc) • 511 B
TypeScript
export declare enum FileFormatToken {
CombinedLabels = "combinedLabels",
Filename = "filename",
FileSizeMb = "fileSizeMb",
Height = "height",
Location = "location",
TopLabel = "topLabel",
Width = "width",
Year = "year"
}
export declare type FileNameTokens = Map<FileFormatToken, string>;
export declare namespace FilenameGenerator {
function generateFilename(tokens: FileNameTokens, format: string): string;
function doesFormatIncludeLocation(format: string): boolean;
}