trueface.helper

helper methods

Functions

adjust_input(in_data)

adjust the input from (h, w, c) to ( 1, c, h, w) for network input

detect_first_stage(img, net, scale, threshold)

run PNet for first stage

detect_first_stage_warpper(args)

generate_bbox(map, reg, scale, threshold)

generate bbox from feature map

iou(box1, box2[, mode])

nms(boxes, overlap_threshold[, mode])

non max suppression