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

Function full_obj_det_part

tools/python/src/shape_predictor.cpp:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50{ return detection.num_parts(); }
51
52point 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
62std::vector<point> full_obj_det_parts (const full_object_detection& detection)
63{

Callers

nothing calls this directly

Calls 1

num_partsMethod · 0.45

Tested by

no test coverage detected