FaceDetection.js 725 B

123456789101112131415
  1. import { __extends } from "tslib";
  2. import { ObjectDetection } from './ObjectDetection';
  3. var FaceDetection = /** @class */ (function (_super) {
  4. __extends(FaceDetection, _super);
  5. function FaceDetection(score, relativeBox, imageDims) {
  6. return _super.call(this, score, score, '', relativeBox, imageDims) || this;
  7. }
  8. FaceDetection.prototype.forSize = function (width, height) {
  9. var _a = _super.prototype.forSize.call(this, width, height), score = _a.score, relativeBox = _a.relativeBox, imageDims = _a.imageDims;
  10. return new FaceDetection(score, relativeBox, imageDims);
  11. };
  12. return FaceDetection;
  13. }(ObjectDetection));
  14. export { FaceDetection };
  15. //# sourceMappingURL=FaceDetection.js.map