height = int(vcap.get(cv2.CAP_PROP_FRAME_HEIGHT))
video_sets[rel_video_path] = {"crop": ", ".join(map(str, [0, width, 0, height]))}
else:
print("Cannot open the video file!")
video_sets=None
// Set values to config file:
cfg_file,ruamelFile = auxiliaryfunctions.create_config_template()
After Change
video_sets[rel_video_path] = {"crop": ", ".join(map(str, [0, width, 0, height]))}
else:
print("Cannot open the video file! Skipping to the next one...")
os.remove(video) // Removing the video or link from the project
if not len(video_sets):
// Silently sweep the files that were already written.