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