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: v0.28.0
Versions
latest
v0.28.0
v0.27.0
v0.26.0
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.