started new repo for video reader
This commit is contained in:
parent
a6723a7d45
commit
854d876db1
15
test.py
15
test.py
|
|
@ -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)
|
|
||||||
Loading…
Reference in New Issue