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

Function py_extract_image_chips

tools/python/src/image4.cpp:506–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504
505template <typename T>
506py::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

Callers

nothing calls this directly

Calls 2

extract_image_chipsFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected