add separate video loader class
This commit is contained in:
12
videoloader_test.py
Normal file
12
videoloader_test.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from video_loader import VideoLoader
|
||||
import cv2
|
||||
from cv2util import to_8_bit_image
|
||||
|
||||
projects_path = "C:\\UntrackedGit\\opencv_test\\him_projects"
|
||||
loader = VideoLoader(projects_path)
|
||||
|
||||
for recording in loader.get_all_recordings():
|
||||
frames = loader.extract_frames(recording)
|
||||
for frame in frames:
|
||||
cv2.imshow("test", frame)
|
||||
cv2.waitKey(1)
|
||||
Reference in New Issue
Block a user