// adds the video list to the config.yaml file
for idx,video in enumerate(videos):
try:
video_path = os.path.realpath(video)
except:
video_path = os.readlink(video)
vcap = cv2.VideoCapture(video_path)
After Change
for idx,video in enumerate(videos):
try:
// For windows os.path.realpath does not work and does not link to the real video.
video_path = str(Path.resolve(Path(video)))
// video_path = os.path.realpath(video)
except:
video_path = os.readlink(video)