UNPKG
@timebutt/face-api.js
Version:
latest (0.23.2)
0.23.2
0.23.1
0.23.0
JavaScript API for face detection and face recognition in the browser with tensorflow.js
@timebutt/face-api.js
/
build
/
es6
/
mtcnn
/
extractImagePatches.d.ts
4 lines
(3 loc)
•
231 B
TypeScript
View Raw
1
2
3
4
import
*
as
tf
from
'@tensorflow/tfjs-core'
;
import
{
Box
,
IDimensions
}
from
'../classes'
;
export
declare
function
extractImagePatches
(
img: HTMLCanvasElement, boxes: Box[], { width, height }: IDimensions
):
Promise
<tf.
Tensor4D
[]>;