我有这个TypeError: capture_and_decode() missing 2 required positional arguments: 'bitrange' and 'axes'
我的代码是:def capture_and_decode(self, bitrange, axes):
cam_width, cam_height = self.camera.resolution
scr_range = self.display.displaywindow.resolution
self.raw_images = numpy.empty((len(axes), cam_height, cam_width, bitrange))
for axis in axes:
for bits in range(0,bitrange):
stripe_width = cam_width // 2 ** (bits + 1)
print(stripe_width)
binary = numpy.fromiter(GrayCode(bits + 1).generate_gray(), dtype=numpy.int) % 2
vector = numpy.repeat(binary, stripe_width)
img = numpy.tile(vector, (cam_height, 1))
self.display.displaywindow.show(img)
time.sleep(0.25)
self.raw_images[axis, :, :, bits] = self.camera.capture()
错误在最后一行。在