(self, *args, **kwargs)
| 170 | def video_source(self, v): self.__video_source = v; self.capture = cv2.VideoCapture(self.__video_source) |
| 171 | |
| 172 | def __init__(self, *args, **kwargs): |
| 173 | self.framerate = 10 |
| 174 | self.video_source = 0 |
| 175 | super(OpencvVideo, self).__init__("", *args, **kwargs) |
| 176 | self.thread = Thread(target=self.update) |
| 177 | self.thread.daemon = True |
| 178 | self.thread.start() |
| 179 | |
| 180 | def set_image_data(self, image_data_as_numpy_array): |
| 181 | #oveloaded to avoid update |