| 504 | |
| 505 | template <typename T> |
| 506 | py::list py_extract_image_chips ( |
| 507 | const numpy_image<T>& img, |
| 508 | const py::list& chip_locations |
| 509 | ) |
| 510 | { |
| 511 | dlib::array<numpy_image<T>> out; |
| 512 | extract_image_chips(img, python_list_to_vector<chip_details>(chip_locations), out); |
| 513 | py::list ret; |
| 514 | for (const auto& i : out) |
| 515 | ret.append(i); |
| 516 | return ret; |
| 517 | } |
| 518 | |
| 519 | // ---------------------------------------------------------------------------------------- |
| 520 |
nothing calls this directly
no test coverage detected