| 145 | |
| 146 | template <typename T> |
| 147 | py::list py_extract_image_chips ( |
| 148 | const numpy_image<T>& img, |
| 149 | const py::list& chip_locations |
| 150 | ) |
| 151 | { |
| 152 | dlib::array<numpy_image<T>> out; |
| 153 | extract_image_chips(img, python_list_to_vector<chip_details>(chip_locations), out); |
| 154 | py::list ret; |
| 155 | for (const auto& i : out) |
| 156 | ret.append(i); |
| 157 | return ret; |
| 158 | } |
| 159 | |
| 160 | // ---------------------------------------------------------------------------------------- |
| 161 |
nothing calls this directly
no test coverage detected