Spaces:
Sleeping
Sleeping
Update app.py
Browse files100 unmodified lines101102103104104105106107108109100 unmodified lines for i in range(len(boxes)): box = denormalize_box(boxes[i], width, height) label = int(labels[i]) print(f"→ Label: {label}, Name: {class_labels.get(label)}, Color: {class_colors.get(label)}") #print(f"→ Label: {label}, Name: {class_labels.get(label)}, Color: {class_colors.get(label)}") print(f"→ Drawing box {box} with color (0, 0, 1)") print(f"Image dtype: {image.dtype}, shape: {image.shape}") cv2.rectangle(image, (box[0], box[1]), (box[2], box[3]), (255, 0, 0), 5)
app.py+3-1