Skip to content

Commit 17dd1c0

Browse files
committed
Fixing file_paths
1 parent 74efa9f commit 17dd1c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compareEncoding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
print("\nComparison frames:\t{frames}".format(frames=args.num_frames))
2727

2828
for 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))

0 commit comments

Comments
 (0)