| 50 | { return detection.num_parts(); } |
| 51 | |
| 52 | point full_obj_det_part (const full_object_detection& detection, const unsigned long idx) |
| 53 | { |
| 54 | if (idx >= detection.num_parts()) |
| 55 | { |
| 56 | PyErr_SetString(PyExc_IndexError, "Index out of range"); |
| 57 | throw py::error_already_set(); |
| 58 | } |
| 59 | return detection.part(idx); |
| 60 | } |
| 61 | |
| 62 | std::vector<point> full_obj_det_parts (const full_object_detection& detection) |
| 63 | { |