Spaces:
Build error
Build error
has12zen
commited on
Commit
·
b12bbc3
1
Parent(s):
a880d2c
fix
Browse files
utils.py
CHANGED
@@ -81,13 +81,13 @@ def calc_q_t_img(img, q, t):
|
|
81 |
def process_frame(frame_and_index):
|
82 |
frame, index = frame_and_index
|
83 |
# processing logic for a single frame
|
84 |
-
logging.info(f"Processing frame {index}")
|
85 |
filtered_image = calc_filtered_img(frame)
|
86 |
output_image = calc_q_t_img(filtered_image, q, t)
|
87 |
output_image=output_image+2
|
88 |
# plt.imshow(output_image)
|
89 |
return output_image.astype(np.uint8)
|
90 |
-
|
91 |
# Center the filtered image at zero by adding 128
|
92 |
q = 3
|
93 |
t = 2
|
|
|
81 |
def process_frame(frame_and_index):
|
82 |
frame, index = frame_and_index
|
83 |
# processing logic for a single frame
|
84 |
+
# logging.info(f"Processing frame {index}")
|
85 |
filtered_image = calc_filtered_img(frame)
|
86 |
output_image = calc_q_t_img(filtered_image, q, t)
|
87 |
output_image=output_image+2
|
88 |
# plt.imshow(output_image)
|
89 |
return output_image.astype(np.uint8)
|
90 |
+
|
91 |
# Center the filtered image at zero by adding 128
|
92 |
q = 3
|
93 |
t = 2
|