(self, width, height)
| 85 | return self |
| 86 | |
| 87 | def resize(self, width, height): |
| 88 | scale_x = width / self.width |
| 89 | scale_y = height / self.height |
| 90 | all_kps = [self.kps_body, self.kps_lhand, self.kps_rhand, self.kps_face] |
| 91 | for kps in all_kps: |
| 92 | if kps is not None: |
| 93 | kps[:, 0] *= scale_x |
| 94 | kps[:, 1] *= scale_y |
| 95 | self.width = width |
| 96 | self.height = height |
| 97 | return self |
| 98 | |
| 99 | def get_kps_body_with_p(self, normalize=False): |
| 100 | kps_body = self.kps_body.copy() |
no outgoing calls
no test coverage detected