Search
Preparing search index...
The search index is not available
face-api.js
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
FaceLandmarkNet
Class FaceLandmarkNet
Hierarchy
FaceLandmark68Net
FaceLandmarkNet
Index
Constructors
constructor
Properties
_face
Feature
Extractor
_name
_param
Mappings
_params
is
Loaded
param
Mappings
params
Accessors
face
Feature
Extractor
Methods
detect
Landmarks
dispose
extract
Classifier
Params
extract
Params
extract
Params
From
Weigth
Map
extract
Weights
forward
forward
Input
freeze
get
Classifier
Channels
In
get
Classifier
Channels
Out
get
Default
Model
Name
get
Frozen
Params
get
Param
From
Path
get
Param
List
get
Trainable
Params
load
load
Classifier
Params
load
From
Disk
load
From
Uri
load
From
Weight
Map
post
Process
reassign
Param
From
Path
run
Net
serialize
Params
variable
Constructors
constructor
new
Face
Landmark
Net
(
faceFeatureExtractor
?:
FaceFeatureExtractor
)
:
FaceLandmarkNet
Parameters
Default value
faceFeatureExtractor:
FaceFeatureExtractor
= new FaceFeatureExtractor()
Returns
FaceLandmarkNet
Properties
Protected
_face
Feature
Extractor
_face
Feature
Extractor
:
IFaceFeatureExtractor
<
FaceFeatureExtractorParams
>
Protected
_name
_name
:
string
Protected
_param
Mappings
_param
Mappings
:
ParamMapping
[]
Protected
_params
_params
:
NetParams
|
undefined
is
Loaded
is
Loaded
:
boolean
param
Mappings
param
Mappings
:
ParamMapping
[]
params
params
:
NetParams
|
undefined
Accessors
face
Feature
Extractor
get
faceFeatureExtractor
(
)
:
IFaceFeatureExtractor
<
FaceFeatureExtractorParams
>
Returns
IFaceFeatureExtractor
<
FaceFeatureExtractorParams
>
Methods
detect
Landmarks
detect
Landmarks
(
input
:
TNetInput
)
:
Promise
<
FaceLandmarks68
|
FaceLandmarks68
[]
>
Parameters
input:
TNetInput
Returns
Promise
<
FaceLandmarks68
|
FaceLandmarks68
[]
>
dispose
dispose
(
throwOnRedispose
?:
boolean
)
:
void
Parameters
Default value
throwOnRedispose:
boolean
= true
Returns
void
extract
Classifier
Params
extract
Classifier
Params
(
weights
:
Float32Array
)
:
object
Parameters
weights:
Float32Array
Returns
object
Protected
extract
Params
extract
Params
(
weights
:
Float32Array
)
:
object
Parameters
weights:
Float32Array
Returns
object
Protected
extract
Params
From
Weigth
Map
extract
Params
From
Weigth
Map
(
weightMap
:
tf.NamedTensorMap
)
:
object
Parameters
weightMap:
tf.NamedTensorMap
Returns
object
extract
Weights
extract
Weights
(
weights
:
Float32Array
)
:
void
Parameters
weights:
Float32Array
Returns
void
forward
forward
(
input
:
TNetInput
)
:
Promise
<
tf.Tensor2D
>
Parameters
input:
TNetInput
Returns
Promise
<
tf.Tensor2D
>
forward
Input
forward
Input
(
input
:
NetInput
)
:
tf.Tensor2D
Parameters
input:
NetInput
Returns
tf.Tensor2D
freeze
freeze
(
)
:
void
Returns
void
Protected
get
Classifier
Channels
In
get
Classifier
Channels
In
(
)
:
number
Returns
number
Protected
get
Classifier
Channels
Out
get
Classifier
Channels
Out
(
)
:
number
Returns
number
Protected
get
Default
Model
Name
get
Default
Model
Name
(
)
:
string
Returns
string
get
Frozen
Params
get
Frozen
Params
(
)
:
object
[]
Returns
object
[]
get
Param
From
Path
get
Param
From
Path
(
paramPath
:
string
)
:
tf.Tensor
Parameters
paramPath:
string
Returns
tf.Tensor
get
Param
List
get
Param
List
(
)
:
object
[]
Returns
object
[]
get
Trainable
Params
get
Trainable
Params
(
)
:
object
[]
Returns
object
[]
load
load
(
weightsOrUrl
:
Float32Array
|
string
|
undefined
)
:
Promise
<
void
>
Parameters
weightsOrUrl:
Float32Array
|
string
|
undefined
Returns
Promise
<
void
>
load
Classifier
Params
load
Classifier
Params
(
weights
:
Float32Array
)
:
void
Parameters
weights:
Float32Array
Returns
void
load
From
Disk
load
From
Disk
(
filePath
:
string
|
undefined
)
:
Promise
<
void
>
Parameters
filePath:
string
|
undefined
Returns
Promise
<
void
>
load
From
Uri
load
From
Uri
(
uri
:
string
|
undefined
)
:
Promise
<
void
>
Parameters
uri:
string
|
undefined
Returns
Promise
<
void
>
load
From
Weight
Map
load
From
Weight
Map
(
weightMap
:
tf.NamedTensorMap
)
:
void
Parameters
weightMap:
tf.NamedTensorMap
Returns
void
post
Process
post
Process
(
output
:
tf.Tensor2D
, inputSize
:
number
, originalDimensions
:
IDimensions
[]
)
:
tf.Tensor2D
Parameters
output:
tf.Tensor2D
inputSize:
number
originalDimensions:
IDimensions
[]
Returns
tf.Tensor2D
reassign
Param
From
Path
reassign
Param
From
Path
(
paramPath
:
string
, tensor
:
tf.Tensor
)
:
void
Parameters
paramPath:
string
tensor:
tf.Tensor
Returns
void
run
Net
run
Net
(
input
:
NetInput
|
tf.Tensor4D
)
:
tf.Tensor2D
Parameters
input:
NetInput
|
tf.Tensor4D
Returns
tf.Tensor2D
serialize
Params
serialize
Params
(
)
:
Float32Array
Returns
Float32Array
variable
variable
(
)
:
void
Returns
void
Globals
Face
Landmark
Net
constructor
_face
Feature
Extractor
_name
_param
Mappings
_params
is
Loaded
param
Mappings
params
face
Feature
Extractor
detect
Landmarks
dispose
extract
Classifier
Params
extract
Params
extract
Params
From
Weigth
Map
extract
Weights
forward
forward
Input
freeze
get
Classifier
Channels
In
get
Classifier
Channels
Out
get
Default
Model
Name
get
Frozen
Params
get
Param
From
Path
get
Param
List
get
Trainable
Params
load
load
Classifier
Params
load
From
Disk
load
From
Uri
load
From
Weight
Map
post
Process
reassign
Param
From
Path
run
Net
serialize
Params
variable
Generated using
TypeDoc