def cbc_opencv_to_numpy(success, cbc_res):
    """
    Transform the result of OpenCV's chessboard corners detection
    to a numpy array of size (n_corners x 2). If corners were not
    identified correctly, the function returns None
    """

    if success:
        return cbc_res.reshape(-1, 2)
    else:
        return None