MCPcopy Create free account
hub / github.com/PaddlePaddle/PaddleYOLO / get_affine_transform

Function get_affine_transform

deploy/serving/python/preprocess_ops.py:296–349  ·  view source on GitHub ↗

Get the affine transform matrix, given the center/scale/rot/output_size. Args: center (np.ndarray[2, ]): Center of the bounding box (x, y). scale (np.ndarray[2, ]): Scale of the bounding box wrt [width, height]. rot (float): Rotation angle (degree). o

(center,
                         input_size,
                         rot,
                         output_size,
                         shift=(0., 0.),
                         inv=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

transform_predsFunction · 0.90
__call__Method · 0.70
__call__Method · 0.70

Calls 2

rotate_pointFunction · 0.70
_get_3rd_pointFunction · 0.70

Tested by

no test coverage detected