| 133 | } |
| 134 | |
| 135 | void padding(int img_h, int img_w, std::vector<face_box>& rects) |
| 136 | { |
| 137 | for(unsigned int i = 0; i < rects.size(); i++) |
| 138 | { |
| 139 | rects[i].px0 = std::max(rects[i].x0, 1.0f); |
| 140 | rects[i].py0 = std::max(rects[i].y0, 1.0f); |
| 141 | rects[i].px1 = std::min(rects[i].x1, ( float )img_w); |
| 142 | rects[i].py1 = std::min(rects[i].y1, ( float )img_h); |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | void process_boxes(std::vector<face_box>& input, int img_h, int img_w, std::vector<face_box>& rects) |
| 147 | { |
no test coverage detected