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

Function regress_boxes

examples/caffe_wrapper/mtcnn/caffe_mtcnn_utils.cpp:103–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void regress_boxes(std::vector<face_box>& rects)
104{
105 for(unsigned int i = 0; i < rects.size(); i++)
106 {
107 face_box& box = rects[i];
108
109 float h = box.y1 - box.y0 + 1;
110 float w = box.x1 - box.x0 + 1;
111
112 box.x0 = box.x0 + w * box.regress[0];
113 box.y0 = box.y0 + h * box.regress[1];
114 box.x1 = box.x1 + w * box.regress[2];
115 box.y1 = box.y1 + h * box.regress[3];
116 }
117}
118
119void square_boxes(std::vector<face_box>& rects)
120{

Callers 2

process_boxesFunction · 0.70
detectMethod · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected