mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-03-12 22:19:48 +00:00
Fixed bug when loading video datasets
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user