[Python] findChessboardCorners fails for thermal image

Discussão em 'Python' iniciado por Stack, Julho 13, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to get OpenCV-python to recognize a checkerboard pattern from my thermal camera. I couldn't get that working. This is the thermal image and I realize the image is low resolution, but I can't change the camera. thermal_image

    When I made the RGB image taken at the same time the same size as the thermal image and detected the chessboard pattern, the pattern was detected, so the image size doesn't seem to be a big issue.

    Is there a way to detect chessboard patterns in thermal images?

    thermal = pd.read_csv("thermal.csv", header=None)
    th_norm = cv2.normalize(np.asanyarray(thermal), None, 0, 255, cv2.NORM_MINMAX).astype(np.uint8)

    found2, corners_thermal = cv2.findChessboardCornersSB(th_norm, (9,5), flags=cv2.CALIB_CB_EXHAUSTIVE + cv2.CALIB_CB_ACCURACY)

    Continue reading...

Compartilhe esta Página