Shortcuts

mmpose.apis.webcam.utils.expand_and_clamp

mmpose.apis.webcam.utils.expand_and_clamp(box: List, im_shape: Tuple, scale: float = 1.25)List[source]

Expand the bbox and clip it to fit the image shape.

Parameters
  • box (list) – x1, y1, x2, y2

  • im_shape (tuple) – image shape (h, w, c)

  • scale (float) – expand ratio

Returns

x1, y1, x2, y2

Return type

list

Read the Docs v: 0.x
Versions
latest
1.x
v1.0.0rc1
v0.29.0
v0.28.0
dev-1.x
0.x
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.