UNPKG

@timebutt/face-api.js

Version:

JavaScript API for face detection and face recognition in the browser with tensorflow.js

24 lines 859 B
import { round } from '../utils'; var FaceMatch = /** @class */ (function () { function FaceMatch(label, distance) { this._label = label; this._distance = distance; } Object.defineProperty(FaceMatch.prototype, "label", { get: function () { return this._label; }, enumerable: false, configurable: true }); Object.defineProperty(FaceMatch.prototype, "distance", { get: function () { return this._distance; }, enumerable: false, configurable: true }); FaceMatch.prototype.toString = function (withDistance) { if (withDistance === void 0) { withDistance = true; } return "".concat(this.label).concat(withDistance ? " (".concat(round(this.distance), ")") : ''); }; return FaceMatch; }()); export { FaceMatch }; //# sourceMappingURL=FaceMatch.js.map