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