File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2626print ("\n Comparison frames:\t {frames}" .format (frames = args .num_frames ))
2727
2828for source_file in source_files :
29- source_file_path = os .path .joinpath ("source" , source_file )
29+ source_file_path = os .path .join ("source" , source_file )
3030 source_file_size = int (os .path .getsize (source_file_path )/ 1000000 )
3131 source_file_handle = cv2 .VideoCapture (source_file_path )
3232 hevc_files = [filename for filename in os .listdir ("hevc" ) if filename .startswith (os .path .splitext (source_file )[0 ])]
3333
3434 for hevc_file in hevc_files :
3535 output_directory = os .path .join (os .path .relpath ("comparison" ), os .path .splitext (os .path .basename (hevc_file ))[0 ])
36- hevc_file_path = os .path .joinpath ("hevc" , hevc_file )
36+ hevc_file_path = os .path .join ("hevc" , hevc_file )
3737 hevc_file_handle = cv2 .VideoCapture (hevc_file_path )
3838 hevc_file_size = int (os .path .getsize (hevc_file_path )/ 1000000 )
3939 compression_ratio = int (100 - (hevc_file_size / source_file_size * 100 ))
You can’t perform that action at this time.
0 commit comments