MCPcopy Create free account
hub / github.com/OAID/Tengine / process_boxes

Function process_boxes

examples/mtcnn/mtcnn_utils.cpp:207–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 }
206}
207void process_boxes(std::vector<face_box>& input, int img_h, int img_w, std::vector<face_box>& rects, float nms_r_thresh)
208{
209 nms_boxes(input, nms_r_thresh, NMS_UNION, rects);
210
211 regress_boxes(rects);
212
213 square_boxes(rects);
214
215 padding(img_h, img_w, rects);
216}
217void copy_one_patch(image img, face_box& input_box, float* data_to, int width, int height)
218{
219 double w = std::abs(input_box.px0 - input_box.px1);

Callers 1

detectMethod · 0.70

Calls 4

nms_boxesFunction · 0.70
regress_boxesFunction · 0.70
square_boxesFunction · 0.70
paddingFunction · 0.70

Tested by

no test coverage detected