FaceDetection.js 839 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var tslib_1 = require("tslib");
  4. var ObjectDetection_1 = require("./ObjectDetection");
  5. var FaceDetection = /** @class */ (function (_super) {
  6. tslib_1.__extends(FaceDetection, _super);
  7. function FaceDetection(score, relativeBox, imageDims) {
  8. return _super.call(this, score, score, '', relativeBox, imageDims) || this;
  9. }
  10. FaceDetection.prototype.forSize = function (width, height) {
  11. var _a = _super.prototype.forSize.call(this, width, height), score = _a.score, relativeBox = _a.relativeBox, imageDims = _a.imageDims;
  12. return new FaceDetection(score, relativeBox, imageDims);
  13. };
  14. return FaceDetection;
  15. }(ObjectDetection_1.ObjectDetection));
  16. exports.FaceDetection = FaceDetection;
  17. //# sourceMappingURL=FaceDetection.js.map