Here you go B
This commit is contained in:
14
video.py
Normal file
14
video.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from videoprocess import VideoProcess
|
||||
|
||||
# Process video using video process class
|
||||
proc = VideoProcess(path="squat_cut_7.mp4")
|
||||
|
||||
# Output tsv for later processing
|
||||
out = open("out.tsv", "w")
|
||||
result = True
|
||||
while result is True:
|
||||
result = proc.processFrame()
|
||||
|
||||
for i in range(len(proc.counts)):
|
||||
out.write("{}\t{}\t{}\n".format(proc.times[i], proc.counts[i], proc.aveCounts[i]))
|
||||
out.close()
|
||||
Reference in New Issue
Block a user