started new repo for video reader

This commit is contained in:
Askill 2020-12-29 11:00:14 +01:00
parent a6723a7d45
commit 854d876db1
1 changed files with 0 additions and 15 deletions

15
test.py
View File

@ -1,15 +0,0 @@
from Application.VideoReader import VideoReader
from Application.Config import Config
import os
fileName = "out.mp4"
dirName = os.path.join(os.path.dirname(__file__), "generate test footage")
config = {}
config["inputPath"] = os.path.join(dirName, fileName)
config["videoBufferLength"] = 100
with VideoReader(config) as reader:
while not reader.videoEnded():
framenumber, frame = reader.pop()
print(framenumber)