qbcompiler.calibration.preprocess.CenterCrop Class Reference

qbcompiler.calibration.preprocess.CenterCrop Class Reference#

Mobilint SDK qb Compiler: qbcompiler.calibration.preprocess.CenterCrop Class Reference
Mobilint SDK qb Compiler v1.2
MCS002-EN
qbcompiler.calibration.preprocess.CenterCrop Class Reference

Perform a centered crop on the image. More...

Public Member Functions

 __init__ (self, List[int] size)
 __call__ (self, np.ndarray img)

Public Attributes

int size = size * 2

Detailed Description

Perform a centered crop on the image.

Parameters
sizelist[int]. Target height and width.

Definition at line 583 of file preprocess.py.

Constructor & Destructor Documentation

◆ __init__()

qbcompiler.calibration.preprocess.CenterCrop.__init__ ( self,
List[int] size )

Definition at line 590 of file preprocess.py.

Member Function Documentation

◆ __call__()

qbcompiler.calibration.preprocess.CenterCrop.__call__ ( self,
np.ndarray img )

Definition at line 601 of file preprocess.py.

Member Data Documentation

◆ size

int qbcompiler.calibration.preprocess.CenterCrop.size = size * 2

Definition at line 595 of file preprocess.py.


The documentation for this class was generated from the following file: