| 205 | } |
| 206 | } |
| 207 | void 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 | } |
| 217 | void 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); |
no test coverage detected