index.js 747 B

12345678910111213141516171819202122
  1. import { __extends } from "tslib";
  2. import { SsdMobilenetv1 } from './SsdMobilenetv1';
  3. export * from './SsdMobilenetv1';
  4. export * from './SsdMobilenetv1Options';
  5. export function createSsdMobilenetv1(weights) {
  6. var net = new SsdMobilenetv1();
  7. net.extractWeights(weights);
  8. return net;
  9. }
  10. export function createFaceDetectionNet(weights) {
  11. return createSsdMobilenetv1(weights);
  12. }
  13. // alias for backward compatibily
  14. var FaceDetectionNet = /** @class */ (function (_super) {
  15. __extends(FaceDetectionNet, _super);
  16. function FaceDetectionNet() {
  17. return _super !== null && _super.apply(this, arguments) || this;
  18. }
  19. return FaceDetectionNet;
  20. }(SsdMobilenetv1));
  21. export { FaceDetectionNet };
  22. //# sourceMappingURL=index.js.map