Commit 3e1ad1e0 by vincent

export interfaces properly

parent 03bb2198
export * from './FaceDetection'; export * from './FaceDetection';
export * from './FaceDetectionWithLandmarks';
export * from './FaceLandmarks'; export * from './FaceLandmarks';
export * from './FaceLandmarks5'; export * from './FaceLandmarks5';
export * from './FaceLandmarks68'; export * from './FaceLandmarks68';
......
...@@ -8,8 +8,9 @@ import { mobileNetV1 } from './mobileNetV1'; ...@@ -8,8 +8,9 @@ import { mobileNetV1 } from './mobileNetV1';
import { nonMaxSuppression } from './nonMaxSuppression'; import { nonMaxSuppression } from './nonMaxSuppression';
import { outputLayer } from './outputLayer'; import { outputLayer } from './outputLayer';
import { predictionLayer } from './predictionLayer'; import { predictionLayer } from './predictionLayer';
import { NetParams, ISsdMobilenetv1Options } from './types'; import { ISsdMobilenetv1Options, SsdMobilenetv1Options } from './SsdMobilenetv1Options';
import { SsdMobilenetv1Options } from './SsdMobilenetv1Options'; import { NetParams } from './types';
export class SsdMobilenetv1 extends NeuralNetwork<NetParams> { export class SsdMobilenetv1 extends NeuralNetwork<NetParams> {
......
import { ISsdMobilenetv1Options } from './types'; export interface ISsdMobilenetv1Options {
minConfidence?: number
maxResults?: number
}
export class SsdMobilenetv1Options { export class SsdMobilenetv1Options {
protected _name: string = 'SsdMobilenetv1Options' protected _name: string = 'SsdMobilenetv1Options'
......
...@@ -70,9 +70,4 @@ export type NetParams = { ...@@ -70,9 +70,4 @@ export type NetParams = {
mobilenetv1: MobileNetV1.Params, mobilenetv1: MobileNetV1.Params,
prediction_layer: PredictionLayerParams, prediction_layer: PredictionLayerParams,
output_layer: OutputLayerParams output_layer: OutputLayerParams
}
export interface ISsdMobilenetv1Options {
minConfidence?: number
maxResults?: number
} }
\ No newline at end of file
import { TinyYolov2Options } from 'tfjs-tiny-yolov2'; import { ITinyYolov2Options, TinyYolov2Options } from 'tfjs-tiny-yolov2';
export interface ITinyFaceDetectorOptions extends ITinyYolov2Options {}
export class TinyFaceDetectorOptions extends TinyYolov2Options { export class TinyFaceDetectorOptions extends TinyYolov2Options {
protected _name: string = 'TinyFaceDetectorOptions' protected _name: string = 'TinyFaceDetectorOptions'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment