| 60 | } |
| 61 | |
| 62 | std::vector<point> full_obj_det_parts (const full_object_detection& detection) |
| 63 | { |
| 64 | const unsigned long num_parts = detection.num_parts(); |
| 65 | std::vector<point> parts(num_parts); |
| 66 | for (unsigned long j = 0; j < num_parts; ++j) |
| 67 | parts[j] = detection.part(j); |
| 68 | return parts; |
| 69 | } |
| 70 | |
| 71 | std::shared_ptr<full_object_detection> full_obj_det_init(const rectangle& rect, const py::object& pyparts_) |
| 72 | { |