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