Fixed bug when loading video datasets

This commit is contained in:
Jaret Burkett
2025-04-10 08:16:05 -06:00
parent d8bdc03256
commit 9794416a5d

View File

@@ -78,6 +78,7 @@ class FileItemDTO(
# Get width and height
width = int(video.get(cv2.CAP_PROP_FRAME_WIDTH))
height = int(video.get(cv2.CAP_PROP_FRAME_HEIGHT))
w, h = width, height
# Release the video capture object immediately
video.release()