Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
face
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Кубота
face
Commits
21085a36
Commit
21085a36
authored
Oct 30, 2018
by
vincent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explicitly export from index files
parent
3ed6b109
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
26 deletions
+33
-26
DetectFacesTasks.ts
src/globalApi/DetectFacesTasks.ts
+0
-14
allFaces.ts
src/globalApi/allFaces.ts
+1
-1
detectFaces.ts
src/globalApi/detectFaces.ts
+20
-0
index.ts
src/globalApi/index.ts
+1
-0
index.ts
src/index.ts
+11
-11
No files found.
src/globalApi/DetectFacesTasks.ts
View file @
21085a36
...
...
@@ -10,20 +10,6 @@ import { DetectAllFaceLandmarksTask, DetectSingleFaceLandmarksTask } from './Det
import
{
nets
}
from
'./nets'
;
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
>
{
constructor
(
protected
input
:
TNetInput
,
...
...
src/globalApi/allFaces.ts
View file @
21085a36
...
...
@@ -4,7 +4,7 @@ import { ITinyYolov2Options, TinyYolov2Options } from 'tfjs-tiny-yolov2';
import
{
FullFaceDescription
}
from
'../classes'
;
import
{
IMtcnnOptions
,
MtcnnOptions
}
from
'../mtcnn/MtcnnOptions'
;
import
{
SsdMobilenetv1Options
}
from
'../ssdMobilenetv1'
;
import
{
detectAllFaces
}
from
'./
DetectFacesTask
s'
;
import
{
detectAllFaces
}
from
'./
detectFace
s'
;
// export allFaces API for backward compatibility
...
...
src/globalApi/detectFaces.ts
0 → 100644
View file @
21085a36
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
src/globalApi/index.ts
View file @
21085a36
export
*
from
'./allFaces'
export
*
from
'./ComposableTask'
export
*
from
'./ComputeFaceDescriptorsTasks'
export
*
from
'./detectFaces'
export
*
from
'./DetectFacesTasks'
export
*
from
'./DetectFaceLandmarksTasks'
export
*
from
'./FaceMatcher'
...
...
src/index.ts
View file @
21085a36
...
...
@@ -6,14 +6,14 @@ export {
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
'./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
export
*
from
'./euclideanDistance'
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment