def check_skin(self): state, img = self.capture.read() print(state) if state is True: p = Picture.fromarray(img) x = p.check_skin() return x
def export_image(self): state, img = self.capture.read() if state is True: return True, Picture.fromarray(img) return False, None