Seokju Cho
commited on
Commit
·
8f61bd9
1
Parent(s):
9a96132
remove print
Browse files
app.py
CHANGED
@@ -22,8 +22,6 @@ FRAME_LIMIT = 300 # Limit the number of frames to process
|
|
22 |
|
23 |
|
24 |
def get_point(frame_num, video_queried_preview, query_points, query_points_color, query_count, evt: gr.SelectData):
|
25 |
-
print(f"You selected {(evt.index[0], evt.index[1], frame_num)}")
|
26 |
-
|
27 |
current_frame = video_queried_preview[int(frame_num)]
|
28 |
|
29 |
# Get the mouse click
|
@@ -32,7 +30,6 @@ def get_point(frame_num, video_queried_preview, query_points, query_points_color
|
|
32 |
# Choose the color for the point from matplotlib colormap
|
33 |
color = matplotlib.colormaps.get_cmap("gist_rainbow")(query_count % 20 / 20)
|
34 |
color = (int(color[0] * 255), int(color[1] * 255), int(color[2] * 255))
|
35 |
-
print(f"Color: {color}")
|
36 |
query_points_color[int(frame_num)].append(color)
|
37 |
|
38 |
# Draw the point on the frame
|
|
|
22 |
|
23 |
|
24 |
def get_point(frame_num, video_queried_preview, query_points, query_points_color, query_count, evt: gr.SelectData):
|
|
|
|
|
25 |
current_frame = video_queried_preview[int(frame_num)]
|
26 |
|
27 |
# Get the mouse click
|
|
|
30 |
# Choose the color for the point from matplotlib colormap
|
31 |
color = matplotlib.colormaps.get_cmap("gist_rainbow")(query_count % 20 / 20)
|
32 |
color = (int(color[0] * 255), int(color[1] * 255), int(color[2] * 255))
|
|
|
33 |
query_points_color[int(frame_num)].append(color)
|
34 |
|
35 |
# Draw the point on the frame
|