Spaces:
Sleeping
Sleeping
Update app.py
Browse files69 unmodified lines707172737374757669 unmodified lines
def denormalize_box(box, width, height): x1, y1, x2, y2 = box return [int(x1 * width), int(y1 * height), int(x2 * width), int(y2 * height)] return [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