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)
def __exit__(self): # only needed to close video capture Func.closeVideoCapture(self.vcap)