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[源代码]

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

参数
  • box (list) – x1, y1, x2, y2

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

  • scale (float) – expand ratio

返回

x1, y1, x2, y2

返回类型

list

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

Free document hosting provided by Read the Docs.