Skip to content

Bug in calib3D py_calibration tutorial #22360

@ngbusca

Description

@ngbusca

The camera 3D calibration tutorial in py_calibration has a small bug: better chessboard corners are computed via cornerSubPix but the original corners are kept instead of the newly computed:

Original code:

    corners2 = cv.cornerSubPix(gray,corners, (11,11), (-1,-1), criteria)
    imgpoints.append(corners)

Should be:

    corners2 = cv.cornerSubPix(gray,corners, (11,11), (-1,-1), criteria)
    imgpoints.append(corners2) ### corrected line

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions