Multi-camera calibration using one or more calibration patterns
Other
362
stars
67
forks
source link
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (7,) + inhomogeneous part. #55
Hi, when running my calibration, I getting the following output and error. Does this mean that my calibration images aren't good enough or is there something more?
INFO - Using boards:
INFO - charuco_10x10_0 CharucoBoard {type='charuco', aruco_dict='4X4_1000', aruco_offset=0, size=(4, 6), num_ids=12, marker_length=0.12, square_length=0.15, aruco_params={'adaptiveThreshWinSizeMax': 200, 'adaptiveThreshWinSizeStep': 50}}
INFO - Found camera directories ['cam1'] with 8 matching images
INFO - Loading images..
100%|████████████████████████████████████████████| 8/8 [00:00<00:00, 197.26it/s]
INFO - Loaded 8 images
INFO - {'cam1': (1280, 1024)}
INFO - Loaded detections from ./calibration.detections.pkl
INFO - Detected point counts:
INFO - Total: 91, cameras: {'cam1': 91}, Boards: {'charuco_10x10_0': 91}
INFO - Calibrating single cameras..
Traceback (most recent call last):
File "/home/lyh/.local/bin/multical", line 8, in
sys.exit(cli())
File "/home/lyh/.local/lib/python3.8/site-packages/multical/app/multical.py", line 28, in cli
run_with(Multical)
File "/home/lyh/.local/lib/python3.8/site-packages/multical/config/arguments.py", line 73, in run_with
return program.app.execute()
File "/home/lyh/.local/lib/python3.8/site-packages/multical/app/multical.py", line 24, in execute
return self.command.execute()
File "/home/lyh/.local/lib/python3.8/site-packages/multical/app/calibrate.py", line 21, in execute
calibrate(self)
File "/home/lyh/.local/lib/python3.8/site-packages/multical/app/calibrate.py", line 37, in calibrate
initialise_with_images(ws, boards, camera_images, args.camera, args.runtime)
File "/home/lyh/.local/lib/python3.8/site-packages/multical/config/workspace.py", line 31, in initialise_with_images
ws.calibrate_single(camera_opts.distortion_model,
File "/home/lyh/.local/lib/python3.8/site-packages/multical/workspace.py", line 171, in calibrate_single
self.cameras, errs = calibrate_cameras(
File "/home/lyh/.local/lib/python3.8/site-packages/multical/camera.py", line 223, in calibrate_cameras
return transpose_lists(pool.starmap(f, zip(points, image_sizes)))
File "/usr/lib/python3.8/multiprocessing/pool.py", line 372, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "/usr/lib/python3.8/multiprocessing/pool.py", line 771, in get
raise self._value
File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.8/multiprocessing/pool.py", line 51, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "/home/lyh/.local/lib/python3.8/site-packages/multical/camera.py", line 79, in calibrate
points.object_points=np.array(points.object_points, dtype=np.float32)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (7,) + inhomogeneous part.
Hi, when running my calibration, I getting the following output and error. Does this mean that my calibration images aren't good enough or is there something more?
INFO - Using boards: INFO - charuco_10x10_0 CharucoBoard {type='charuco', aruco_dict='4X4_1000', aruco_offset=0, size=(4, 6), num_ids=12, marker_length=0.12, square_length=0.15, aruco_params={'adaptiveThreshWinSizeMax': 200, 'adaptiveThreshWinSizeStep': 50}} INFO - Found camera directories ['cam1'] with 8 matching images INFO - Loading images.. 100%|████████████████████████████████████████████| 8/8 [00:00<00:00, 197.26it/s] INFO - Loaded 8 images INFO - {'cam1': (1280, 1024)} INFO - Loaded detections from ./calibration.detections.pkl INFO - Detected point counts: INFO - Total: 91, cameras: {'cam1': 91}, Boards: {'charuco_10x10_0': 91} INFO - Calibrating single cameras.. Traceback (most recent call last): File "/home/lyh/.local/bin/multical", line 8, in
sys.exit(cli())
File "/home/lyh/.local/lib/python3.8/site-packages/multical/app/multical.py", line 28, in cli
run_with(Multical)
File "/home/lyh/.local/lib/python3.8/site-packages/multical/config/arguments.py", line 73, in run_with
return program.app.execute()
File "/home/lyh/.local/lib/python3.8/site-packages/multical/app/multical.py", line 24, in execute
return self.command.execute()
File "/home/lyh/.local/lib/python3.8/site-packages/multical/app/calibrate.py", line 21, in execute
calibrate(self)
File "/home/lyh/.local/lib/python3.8/site-packages/multical/app/calibrate.py", line 37, in calibrate
initialise_with_images(ws, boards, camera_images, args.camera, args.runtime)
File "/home/lyh/.local/lib/python3.8/site-packages/multical/config/workspace.py", line 31, in initialise_with_images
ws.calibrate_single(camera_opts.distortion_model,
File "/home/lyh/.local/lib/python3.8/site-packages/multical/workspace.py", line 171, in calibrate_single
self.cameras, errs = calibrate_cameras(
File "/home/lyh/.local/lib/python3.8/site-packages/multical/camera.py", line 223, in calibrate_cameras
return transpose_lists(pool.starmap(f, zip(points, image_sizes)))
File "/usr/lib/python3.8/multiprocessing/pool.py", line 372, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "/usr/lib/python3.8/multiprocessing/pool.py", line 771, in get
raise self._value
File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.8/multiprocessing/pool.py", line 51, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "/home/lyh/.local/lib/python3.8/site-packages/multical/camera.py", line 79, in calibrate
points.object_points=np.array(points.object_points, dtype=np.float32)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (7,) + inhomogeneous part.