Search
Preparing search index...
The search index is not available
face-api.js
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
BoxWithText
Class BoxWithText
Hierarchy
Box
<
BoxWithText
>
BoxWithText
Implements
IBoundingBox
IRect
Index
Constructors
constructor
Accessors
area
bottom
height
left
right
text
top
width
x
y
Methods
calibrate
clip
AtImage
Borders
floor
pad
pad
AtBorders
rescale
round
shift
to
Square
assert
IsValid
Box
is
Rect
Constructors
constructor
new
Box
With
Text
(
box
:
IRect
|
IBoundingBox
, text
:
string
)
:
BoxWithText
Parameters
box:
IRect
|
IBoundingBox
text:
string
Returns
BoxWithText
Accessors
area
get
area
(
)
:
number
Returns
number
bottom
get
bottom
(
)
:
number
Returns
number
height
get
height
(
)
:
number
Returns
number
left
get
left
(
)
:
number
Returns
number
right
get
right
(
)
:
number
Returns
number
text
get
text
(
)
:
string
Returns
string
top
get
top
(
)
:
number
Returns
number
width
get
width
(
)
:
number
Returns
number
x
get
x
(
)
:
number
Returns
number
y
get
y
(
)
:
number
Returns
number
Methods
calibrate
calibrate
(
region
:
Box
)
:
Box
<
any
>
Parameters
region:
Box
Returns
Box
<
any
>
clip
AtImage
Borders
clip
AtImage
Borders
(
imgWidth
:
number
, imgHeight
:
number
)
:
Box
<
BoxWithText
>
Parameters
imgWidth:
number
imgHeight:
number
Returns
Box
<
BoxWithText
>
floor
floor
(
)
:
Box
<
BoxWithText
>
Returns
Box
<
BoxWithText
>
pad
pad
(
padX
:
number
, padY
:
number
)
:
Box
<
BoxWithText
>
Parameters
padX:
number
padY:
number
Returns
Box
<
BoxWithText
>
pad
AtBorders
pad
AtBorders
(
imageHeight
:
number
, imageWidth
:
number
)
:
object
Parameters
imageHeight:
number
imageWidth:
number
Returns
object
rescale
rescale
(
s
:
IDimensions
|
number
)
:
Box
<
BoxWithText
>
Parameters
s:
IDimensions
|
number
Returns
Box
<
BoxWithText
>
round
round
(
)
:
Box
<
BoxWithText
>
Returns
Box
<
BoxWithText
>
shift
shift
(
sx
:
number
, sy
:
number
)
:
Box
<
BoxWithText
>
Parameters
sx:
number
sy:
number
Returns
Box
<
BoxWithText
>
to
Square
to
Square
(
)
:
Box
<
BoxWithText
>
Returns
Box
<
BoxWithText
>
Static
assert
IsValid
Box
assert
IsValid
Box
(
box
:
any
, callee
:
string
, allowNegativeDimensions
?:
boolean
)
:
void
Parameters
box:
any
callee:
string
Default value
allowNegativeDimensions:
boolean
= false
Returns
void
Static
is
Rect
is
Rect
(
rect
:
any
)
:
boolean
Parameters
rect:
any
Returns
boolean
Globals
Box
With
Text
constructor
area
bottom
height
left
right
text
top
width
x
y
calibrate
clip
AtImage
Borders
floor
pad
pad
AtBorders
rescale
round
shift
to
Square
assert
IsValid
Box
is
Rect
Generated using
TypeDoc