记录一个.arv视频文件(测试版)
就一个给定的GVM而言,您可以随时以视频器件的原格式来记录当前GVM访问的图像。例如,使用Python语言,以Telepathe为GVM进行这一操作:
# First launch Telepathe and display NAOCam images camProxy = ALProxy("ALVideoDevice", IP, PORT) nameId = "telepathe_videoModule" numberOfImagesToRecord = 100 period = 2 success = camProxy.recordVideo(nameId, "/home/nao/naoqi/data/myFile", numberOfImagesToRecord, period) # This will record 100 images in myFile.arv at half the framerate of Telepathe. # Stop grabbing camProxy.stopVideo()