Skip to content

Change in ArucoDetector return value in 4.13.0.90? #1185

@jackjansen

Description

@jackjansen

Since this morning the following code has started crashing:

corners, ids, rejected  = self.ARUCO_DETECTOR.detectMarkers(img)
# ...
if not ids is None:
  for i in range(len(ids)):
     rv_ids.append(int(ids[I]))

With error

  File ".../cwipc/cwipc_util/python/cwipc/registration/multicoarse.py", line 525, in _find_aruco_in_image
    rv_ids.append(int(ids[i]))
                  ^^^^^^^^^^^
TypeError: only 0-dimensional arrays can be converted to Python scalars

Has the return value of the ArucoDetector changed?

I have checked the release notes but I couldn't find anything...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions