fffiloni commited on
Commit
0b7a097
·
1 Parent(s): 120ac54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -92,6 +92,9 @@ def normalize_and_save_video(input_video_path, output_video_path):
92
  # Normalize pixel values to the range [0, 1]
93
  frame /= 255.0
94
 
 
 
 
95
  # Write the normalized frame to the output video file
96
  out.write(frame)
97
 
 
92
  # Normalize pixel values to the range [0, 1]
93
  frame /= 255.0
94
 
95
+ # Convert normalized frame back to 8-bit unsigned integer
96
+ frame = (frame * 255.0).astype(np.uint8)
97
+
98
  # Write the normalized frame to the output video file
99
  out.write(frame)
100