Python Utils API

Utilities for using oneML.

oneML.faceAPI.Utils : public object

The oneML Utils API object.

Class to create and use oneML Utils.

Public Functions

__init__(self, manager)

Construct a Utils object.

Parameters

crop_align_face_landmark(self, imgvec_, landmark_in)

Create align image from original image and landmark.

Return

numpy array: image with shape (112, 112, 3)

Parameters
  • imgvec_: numpy array with shape (height, width, channel)

  • landmark_in: Landmark5 object

read_image_cv(self, img_path)

Read image file with specific path.

Return

numpy array: image

Parameters
  • img_path: string image path

oneML.alprAPI.Utils : public object

The oneML Utils API object.

Class to create and use oneML Utils.

Public Functions

__init__(self, manager)

Construct a Utils object.

Parameters

read_image_cv(self, img_path)

Read image file with specific path.

Return

numpy array: image

Parameters
  • img_path: string image path