I am getting the following during calibration
I am starting to learn numpy
any help understanding the error message is appreciated
I am not ruling out a configuration problem, as this is a new setup
I am guessing that it may be related to hflip/vflip because of (1296,972) (972,1296) at the end of the message
the camera is v1, but I am not sure what to set the resolution to. it is currently:
"camera": {
"resolution": {
"width": 1296,
"height": 972
},
"preview_resolution": {
"width": 800,
"height": 600
},
"rotate": "False",
"hflip": "True",
"vflip": "True",
"type": "PICAM",
"undistort": "False"
},
I added some debug info in compute_2d_points:
self._logger.debug(" v.shape = " + str(v.shape))
self._logger.debug(" s.shape = " + str(s.shape))
I get these in the log from position 72 through 82 (the v.shape numbers range from 418 to 441, first one is zero)
2020-08-05 09:46:36,161 [5642:2575762528] DEBUG - fabscan.scanner.laserscanner.FSImageProcessor: v.shape = (418,)
2020-08-05 09:46:36,162 [5642:2575762528] DEBUG - fabscan.scanner.laserscanner.FSImageProcessor: s.shape = (972,)
2020-08-05 09:46:36,184 [5642:2575762528] ERROR - fabscan.scanner.laserscanner.FSCalibration: operands could not be broadcast together with shapes (1296,972) (972,1296)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/fabscan/scanner/laserscanner/FSCalibration.py", line 327, in _capture_scanner_calibration
points_2d, _ = self._imageprocessor.compute_2d_points(image, roi_mask=False, refinement_method='RANSAC', pos=position)
File "/usr/lib/python3/dist-packages/fabscan/scanner/laserscanner/FSImageProcessor.py", line 263, in compute_2d_points
u = (self._weight_matrix * image).sum(axis=1)[v] / s[v]
ValueError: operands could not be broadcast together with shapes (1296,972) (972,1296)