UNPKG

image-classifier-ts

Version:

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

34 lines (33 loc) 1.13 kB
import { IOutputter } from "./output/IOutputter"; import { SimpleDate } from "./SimpleDate"; export declare enum ExifTag { ApertureValue = "ApertureValue", ColorSpace = "ColorSpace", DateTime = "DateTime", FocalLength = "FocalLength", GPSAltitude = "GPSAltitude", GPSAltitudeRef = "GPSAltitudeRef", GPSDateStamp = "GPSDateStamp", GPSLatitude = "GPSLatitude", GPSLatitudeRef = "GPSLatitudeRef", GPSLongitude = "GPSLongitude", GPSLongitudeRef = "GPSLongitudeRef", ISOSpeedRatings = "ISOSpeedRatings", Orientation = "Orientation", ShutterSpeedValue = "ShutterSpeedValue" } export declare class ExifTagSet { static fromTags(tags: any, outputter: IOutputter): ExifTagSet; private readonly map; dump(outputter: IOutputter): void; private dumpTag; get(tag: ExifTag): string | null; getDateStamp(): SimpleDate | null; private getAvailableDateStamps; private tryGetExifDateStamp; private tryGet; isLatLongOk(): boolean; } export declare namespace ExifUtils { function readFile(filepath: string, outputter: IOutputter): ExifTagSet | null; }