(self, x0, y0, x1, y1)
| 75 | return x0, y0, x1, y1 |
| 76 | |
| 77 | def crop(self, x0, y0, x1, y1): |
| 78 | all_kps = [self.kps_body, self.kps_lhand, self.kps_rhand, self.kps_face] |
| 79 | for kps in all_kps: |
| 80 | if kps is not None: |
| 81 | kps[:, 0] -= x0 |
| 82 | kps[:, 1] -= y0 |
| 83 | self.width = x1 - x0 |
| 84 | self.height = y1 - y0 |
| 85 | return self |
| 86 | |
| 87 | def resize(self, width, height): |
| 88 | scale_x = width / self.width |
no outgoing calls
no test coverage detected