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
652d3442
Commit
652d3442
authored
Oct 16, 2018
by
vincent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added missing interfaces
parent
0a30ee70
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
FaceDetection.ts
src/classes/FaceDetection.ts
+7
-2
FaceLandmarks.ts
src/classes/FaceLandmarks.ts
+6
-1
FaceMatch.ts
src/classes/FaceMatch.ts
+6
-1
No files found.
src/classes/FaceDetection.ts
View file @
652d3442
import
{
IDimensions
,
ObjectDetection
,
Rect
}
from
'tfjs-image-recognition-base'
;
import
{
Box
,
IDimensions
,
ObjectDetection
,
Rect
}
from
'tfjs-image-recognition-base'
;
export
class
FaceDetection
extends
ObjectDetection
{
export
interface
IFaceDetecion
{
score
:
number
box
:
Box
}
export
class
FaceDetection
extends
ObjectDetection
implements
IFaceDetecion
{
constructor
(
constructor
(
score
:
number
,
score
:
number
,
relativeBox
:
Rect
,
relativeBox
:
Rect
,
...
...
src/classes/FaceLandmarks.ts
View file @
652d3442
...
@@ -7,7 +7,12 @@ const relX = 0.5
...
@@ -7,7 +7,12 @@ const relX = 0.5
const
relY
=
0.43
const
relY
=
0.43
const
relScale
=
0.45
const
relScale
=
0.45
export
class
FaceLandmarks
{
export
interface
IFaceLandmarks
{
positions
:
Point
[]
shift
:
Point
}
export
class
FaceLandmarks
implements
IFaceLandmarks
{
protected
_shift
:
Point
protected
_shift
:
Point
protected
_positions
:
Point
[]
protected
_positions
:
Point
[]
protected
_imgDims
:
Dimensions
protected
_imgDims
:
Dimensions
...
...
src/classes/FaceMatch.ts
View file @
652d3442
import
{
round
}
from
'tfjs-image-recognition-base'
;
import
{
round
}
from
'tfjs-image-recognition-base'
;
export
class
FaceMatch
{
export
interface
IFaceMatch
{
label
:
string
distance
:
number
}
export
class
FaceMatch
implements
IFaceMatch
{
private
_label
:
string
private
_label
:
string
private
_distance
:
number
private
_distance
:
number
...
...
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