# extractFaceTensors | @vladmandic/face-api - v1.7.6
Documentation for @vladmandic/face-api - v1.7.6

# Function extractFaceTensors

- extractFaceTensors(imageTensor: any, detections: ( Rect | FaceDetection )[]): Promise<tf.Tensor3D[]>

- Extracts the tensors of the image regions containing the detected faces. Useful if you want to compute the face descriptors for the face images. Using this method is faster then extracting a canvas for each face and converting them to tensors individually.

  ### Returns

  Tensors of the corresponding image region for each detected face.

  #### Parameters

  - ##### imageTensor: any

    The image tensor that face detection has been performed on.

  - ##### detections: ( Rect | FaceDetection )[]

    The face detection results or face bounding boxes for that image.

  #### Returns Promise<tf.Tensor3D[]>

  - Defined in dom/extractFaceTensors.ts:17