Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GK615Lab opened this issue Jul 27, 2023 · 0 comments

Comments

@GK615Lab
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant