image-classifier-ts
Version:
Command line tool to auto-classify images, renaming them with appropriate labels. Uses Node and Google Vision API.
19 lines • 621 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Nodash = void 0;
// Custom lodash like code, to avoid issues with rollup + lodash when installing globally (npm -g)
var Nodash;
(function (Nodash) {
function take(arr, count) {
var result = [];
if (count < 0) {
throw new Error("count must be >= 0");
}
for (var i = 0; i < count && i < arr.length; i++) {
result.push(arr[i]);
}
return result;
}
Nodash.take = take;
})(Nodash = exports.Nodash || (exports.Nodash = {}));
//# sourceMappingURL=Nodash.js.map