Commit 21085a36 by vincent

explicitly export from index files

parent 3ed6b109
...@@ -10,20 +10,6 @@ import { DetectAllFaceLandmarksTask, DetectSingleFaceLandmarksTask } from './Det ...@@ -10,20 +10,6 @@ import { DetectAllFaceLandmarksTask, DetectSingleFaceLandmarksTask } from './Det
import { nets } from './nets'; import { nets } from './nets';
import { FaceDetectionOptions } from './types'; import { FaceDetectionOptions } from './types';
export function detectSingleFace(
input: TNetInput,
options: FaceDetectionOptions = new SsdMobilenetv1Options()
): DetectSingleFaceTask {
return new DetectSingleFaceTask(input, options)
}
export function detectAllFaces(
input: TNetInput,
options: FaceDetectionOptions = new SsdMobilenetv1Options()
): DetectAllFacesTask {
return new DetectAllFacesTask(input, options)
}
export class DetectFacesTaskBase<TReturn> extends ComposableTask<TReturn> { export class DetectFacesTaskBase<TReturn> extends ComposableTask<TReturn> {
constructor( constructor(
protected input: TNetInput, protected input: TNetInput,
......
...@@ -4,7 +4,7 @@ import { ITinyYolov2Options, TinyYolov2Options } from 'tfjs-tiny-yolov2'; ...@@ -4,7 +4,7 @@ import { ITinyYolov2Options, TinyYolov2Options } from 'tfjs-tiny-yolov2';
import { FullFaceDescription } from '../classes'; import { FullFaceDescription } from '../classes';
import { IMtcnnOptions, MtcnnOptions } from '../mtcnn/MtcnnOptions'; import { IMtcnnOptions, MtcnnOptions } from '../mtcnn/MtcnnOptions';
import { SsdMobilenetv1Options } from '../ssdMobilenetv1'; import { SsdMobilenetv1Options } from '../ssdMobilenetv1';
import { detectAllFaces } from './DetectFacesTasks'; import { detectAllFaces } from './detectFaces';
// export allFaces API for backward compatibility // export allFaces API for backward compatibility
......
import { TNetInput } from 'tfjs-image-recognition-base';
import { SsdMobilenetv1Options } from '../ssdMobilenetv1/SsdMobilenetv1Options';
import { DetectAllFacesTask, DetectSingleFaceTask } from './DetectFacesTasks';
import { FaceDetectionOptions } from './types';
export function detectSingleFace(
input: TNetInput,
options: FaceDetectionOptions = new SsdMobilenetv1Options()
): DetectSingleFaceTask {
return new DetectSingleFaceTask(input, options)
}
export function detectAllFaces(
input: TNetInput,
options: FaceDetectionOptions = new SsdMobilenetv1Options()
): DetectAllFacesTask {
return new DetectAllFacesTask(input, options)
}
\ No newline at end of file
export * from './allFaces' export * from './allFaces'
export * from './ComposableTask' export * from './ComposableTask'
export * from './ComputeFaceDescriptorsTasks' export * from './ComputeFaceDescriptorsTasks'
export * from './detectFaces'
export * from './DetectFacesTasks' export * from './DetectFacesTasks'
export * from './DetectFaceLandmarksTasks' export * from './DetectFaceLandmarksTasks'
export * from './FaceMatcher' export * from './FaceMatcher'
......
...@@ -6,14 +6,14 @@ export { ...@@ -6,14 +6,14 @@ export {
export * from 'tfjs-image-recognition-base'; export * from 'tfjs-image-recognition-base';
export * from './classes'; export * from './classes/index';
export * from './dom/index'
export * from './faceLandmarkNet/index';
export * from './faceRecognitionNet/index';
export * from './globalApi/index';
export * from './mtcnn/index';
export * from './ssdMobilenetv1/index';
export * from './tinyFaceDetector/index';
export * from './tinyYolov2/index';
export * from './dom'
export * from './euclideanDistance'; export * from './euclideanDistance';
\ No newline at end of file
export * from './faceLandmarkNet';
export * from './faceRecognitionNet';
export * from './globalApi';
export * from './mtcnn';
export * from './ssdMobilenetv1';
export * from './tinyFaceDetector';
export * from './tinyYolov2';
\ No newline at end of file
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