trueface.utils

utility methods

Functions

adjust_brightness_and_contrast(image[, …])
adjust_gamma(image[, gamma])
bbox_center(bbox)
bbox_to_rect(bbox) Convert a bounding box to a rectangle
compute_color_for_labels(label) Simple function that adds fixed color depending on the class
cosine_probability(clf, cosine_similarity)
det_to_rect(det, frame)
download_file(url)
draw_boxes(img, bbox[, identities, offset])
get_rect_overlap_area(rect_a, rect_b)
iou(boxA, boxB)
iou_rect(box_a, box_b)
md5([fname, string])
read_image(path)
rect_area(rect)
rect_center(rect)
rect_overlap_ratio(rect_a, rect_b)
rect_to_bbox(rect)

Classes

RedisQueue(name[, namespace]) Simple Queue with Redis Backend