예제 #1
0
 def getAngles(self, batAngles):
     self.vcap = Func.openVideoCapture()
     success, img = self.vcap.read()
     Func.anglesBatteries(img, self.gui.config.batpos, batAngles)
     Func.closeVideoCapture(self.vcap)
예제 #2
0
 def __exit__(self):  # only needed to close video capture
     Func.closeVideoCapture(self.vcap)