Preparing search index...
The search index is not available
@vladmandic/face-api - v1.7.14
@vladmandic/face-api
PredictedBox
Class PredictedBox
Hierarchy (
view full
)
LabeledBox
PredictedBox
Index
Constructors
constructor
Accessors
area
bottom
bottom
Left
bottom
Right
class
Score
height
label
left
right
score
top
top
Left
top
Right
width
x
y
Methods
calibrate
clip
At
Image
Borders
floor
pad
pad
At
Borders
rescale
round
shift
to
Square
assert
Is
Valid
Box
assert
Is
Valid
Labeled
Box
assert
Is
Valid
Predicted
Box
is
Rect
Constructors
constructor
new
Predicted
Box
(
box
,
label
,
score
,
classScore
)
:
PredictedBox
Parameters
box
:
any
label
:
number
score
:
number
classScore
:
number
Returns
PredictedBox
Accessors
area
get
area
(
)
:
number
Returns
number
bottom
get
bottom
(
)
:
number
Returns
number
bottom
Left
get
bottomLeft
(
)
:
Point
Returns
Point
bottom
Right
get
bottomRight
(
)
:
Point
Returns
Point
class
Score
get
classScore
(
)
:
number
Returns
number
height
get
height
(
)
:
number
Returns
number
label
get
label
(
)
:
number
Returns
number
left
get
left
(
)
:
number
Returns
number
right
get
right
(
)
:
number
Returns
number
score
get
score
(
)
:
number
Returns
number
top
get
top
(
)
:
number
Returns
number
top
Left
get
topLeft
(
)
:
Point
Returns
Point
top
Right
get
topRight
(
)
:
Point
Returns
Point
width
get
width
(
)
:
number
Returns
number
x
get
x
(
)
:
number
Returns
number
y
get
y
(
)
:
number
Returns
number
Methods
calibrate
calibrate
(
region
)
:
Box
<
any
>
Parameters
region
:
Box
<
any
>
Returns
Box
<
any
>
clip
At
Image
Borders
clip
At
Image
Borders
(
imgWidth
,
imgHeight
)
:
Box
<
any
>
Parameters
imgWidth
:
number
imgHeight
:
number
Returns
Box
<
any
>
floor
floor
(
)
:
Box
<
any
>
Returns
Box
<
any
>
pad
pad
(
padX
,
padY
)
:
Box
<
any
>
Parameters
padX
:
number
padY
:
number
Returns
Box
<
any
>
pad
At
Borders
pad
At
Borders
(
imageHeight
,
imageWidth
)
:
{
dx
:
number
;
dy
:
number
;
edx
:
number
;
edy
:
number
;
ex
:
number
;
ey
:
number
;
h
:
number
;
w
:
number
;
x
:
number
;
y
:
number
;
}
Parameters
imageHeight
:
number
imageWidth
:
number
Returns
{
dx
:
number
;
dy
:
number
;
edx
:
number
;
edy
:
number
;
ex
:
number
;
ey
:
number
;
h
:
number
;
w
:
number
;
x
:
number
;
y
:
number
;
}
dx
:
number
dy
:
number
edx
:
number
edy
:
number
ex
:
number
ey
:
number
h
:
number
w
:
number
x
:
number
y
:
number
rescale
rescale
(
s
)
:
Box
<
any
>
Parameters
s
:
number
|
IDimensions
Returns
Box
<
any
>
round
round
(
)
:
Box
<
any
>
Returns
Box
<
any
>
shift
shift
(
sx
,
sy
)
:
Box
<
any
>
Parameters
sx
:
number
sy
:
number
Returns
Box
<
any
>
to
Square
to
Square
(
)
:
Box
<
any
>
Returns
Box
<
any
>
Static
assert
Is
Valid
Box
assert
Is
Valid
Box
(
box
,
callee
,
allowNegativeDimensions
?
)
:
void
Parameters
box
:
any
callee
:
string
allowNegativeDimensions
:
boolean
= false
Returns
void
Static
assert
Is
Valid
Labeled
Box
assert
Is
Valid
Labeled
Box
(
box
,
callee
)
:
void
Parameters
box
:
any
callee
:
string
Returns
void
Static
assert
Is
Valid
Predicted
Box
assert
Is
Valid
Predicted
Box
(
box
,
callee
)
:
void
Parameters
box
:
any
callee
:
string
Returns
void
Static
is
Rect
is
Rect
(
rect
)
:
boolean
Parameters
rect
:
any
Returns
boolean
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
area
bottom
bottom
Left
bottom
Right
class
Score
height
label
left
right
score
top
top
Left
top
Right
width
x
y
Methods
calibrate
clip
At
Image
Borders
floor
pad
pad
At
Borders
rescale
round
shift
to
Square
assert
Is
Valid
Box
assert
Is
Valid
Labeled
Box
assert
Is
Valid
Predicted
Box
is
Rect
@vladmandic/face-api - v1.7.14
Loading...