本文整理汇总了Python中video.Video.display方法的典型用法代码示例。如果您正苦于以下问题:Python Video.display方法的具体用法?Python Video.display怎么用?Python Video.display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类video.Video
的用法示例。
在下文中一共展示了Video.display方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: goGetEm
# 需要导入模块: from video import Video [as 别名]
# 或者: from video.Video import display [as 别名]
def goGetEm():
minRemovalScore = 0.0001
timeOut = 10
cleanThresh = 5
binNumber = 100
distanceWeight = 0.5
sizeWeight = 0.0
timeWeight = 0.5
weights = (distanceWeight, timeWeight, sizeWeight)
writingToFiles = True
distDev = 200
timeDev = 0.34
sizeDev = 0.25
devs = (distDev, timeDev, sizeDev)
framesback = 2
variables = [minRemovalScore, timeOut, cleanThresh, binNumber, weights, writingToFiles, devs, framesback]
vid = Video(0, variables)
# vidFile = "outvid.avi"
# csvFile = "variable.csv"
# if writingToFiles:
# vid.openVidWrite(vidFile)
# vid.openCSVWrite(csvFile)
while (True):
vid.readFrame()
vid.findFaces()
vid.display()
# vid.writeToVideo()
# exit on escape key
key = cv2.waitKey(1)
if key == 27:
break
vid.endWindow()