def init_capture(self, capture): DualCameraMaster.init_capture(self, capture) index = self.captures.index(capture) self.indexes.append(index) capture.release()