MCPcopy Create free account
hub / github.com/davisking/dlib / py_extract_image_chips

Function py_extract_image_chips

tools/python/src/image2.cpp:147–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146template <typename T>
147py::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

Callers

nothing calls this directly

Calls 2

extract_image_chipsFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected