Spaces:
Sleeping
Sleeping
Update app.py
Browse files69 unmodified lines7071727374757669 unmodified linesdef denormalize_box(box, width, height):x1, y1, x2, y2 = boxreturn [int(x1 * width), int(y1 * height), int(x2 * width), int(y2 * height)]def visualize_and_analyze(image, labels, boxes, scores, scale_bar_length_nm, scale_bar_pixels,class_colors, class_labels):69 unmodified lines7071727374757669 unmodified linesdef denormalize_box(box, width, height):x1, y1, x2, y2 = boxreturn [int(x1 * 1024), int(y1 * 1024), int(x2 * 1024), int(y2 * 1024)]def visualize_and_analyze(image, labels, boxes, scores, scale_bar_length_nm, scale_bar_pixels,class_colors, class_labels):
app.py+1-1