Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Got an error in stereo vision fish eye camera calibration

The error I am geting is: error: (-5:Bad argument) When the input arrays in add/subtract/multiply/divide functions have different types, the output array type must be explicitly specified in function 'arithm_op'

function related imagesize filenames = [] objectPoints = [] imagePoints = [] imageSize = None

for imagePath in sorted(imagePaths):
    image = cv2.imread(imagePath)
    grayImage = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)

    newSize = grayImage.shape[::-1]
    if imageSize != None and newSize != imageSize:
        raise ValueError(
                "Calibration image at {0} is not the same size as the others"
                .format(imagePath))
    imageSize = newSize
    ret, corners = cv2.findChessboardCorners(grayImage,
            CHESSBOARD_SIZE, cv2.CALIB_CB_FAST_CHECK)

And Stereo Calibration function: (rms,K1, D1, K2, D2, R, T) = cv2.fisheye.stereoCalibrate( objectPoints, leftImagePoints, rightImagePoints, K_left, D_left, K_right, D_right, imageSize, flags = flags)

Got an error in stereo vision fish eye camera calibration

The error I am geting is: error: (-5:Bad argument) When the input arrays in add/subtract/multiply/divide functions have different types, the output array type must be explicitly specified in function 'arithm_op'

function related imagesize filenames = [] objectPoints = [] imagePoints = [] imageSize = None

None
    for imagePath in sorted(imagePaths):
     image = cv2.imread(imagePath)
     grayImage = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)

cv2.COLOR_BGR2GRAY)

    newSize = grayImage.shape[::-1]
    if imageSize != None and newSize != imageSize:
        raise ValueError(
                "Calibration image at {0} is not the same size as the others"
                .format(imagePath))
    imageSize = newSize
    ret, corners = cv2.findChessboardCorners(grayImage,
            CHESSBOARD_SIZE, cv2.CALIB_CB_FAST_CHECK)

And Stereo Calibration function: (rms,K1, D1, K2, D2, R, T) = cv2.fisheye.stereoCalibrate( objectPoints, leftImagePoints, rightImagePoints, K_left, D_left, K_right, D_right, imageSize, flags = flags)

Got an error in stereo vision fish eye camera calibration

The error I am geting is: error: (-5:Bad argument) When the input arrays in add/subtract/multiply/divide functions have different types, the output array type must be explicitly specified in function 'arithm_op'

function related imagesize

filenames = [] objectPoints = [] imagePoints = [] imageSize = None for imagePath in sorted(imagePaths): image = cv2.imread(imagePath) grayImage = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)

    newSize = grayImage.shape[::-1]
    if imageSize != None and newSize != imageSize:
        raise ValueError(
                "Calibration image at {0} is not the same size as the others"
                .format(imagePath))
    imageSize = newSize
    ret, corners = cv2.findChessboardCorners(grayImage,
            CHESSBOARD_SIZE, cv2.CALIB_CB_FAST_CHECK)

And Stereo Calibration function: (rms,K1, D1, K2, D2, R, T) = cv2.fisheye.stereoCalibrate( objectPoints, leftImagePoints, rightImagePoints, K_left, D_left, K_right, D_right, imageSize, flags = flags)

Got an error in stereo vision fish eye camera calibration

The error I am geting is: error: (-5:Bad argument) When the input arrays in add/subtract/multiply/divide functions have different types, the output array type must be explicitly specified in function 'arithm_op'

function related imagesize

"

filenames = [] objectPoints = [] imagePoints = [] imageSize = None for imagePath in sorted(imagePaths): image = cv2.imread(imagePath) grayImage = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)

    newSize = grayImage.shape[::-1]
    if imageSize != None and newSize != imageSize:
        raise ValueError(
                "Calibration image at {0} is not the same size as the others"
                .format(imagePath))
    imageSize = newSize
    ret, corners = cv2.findChessboardCorners(grayImage,
            CHESSBOARD_SIZE, cv2.CALIB_CB_FAST_CHECK)

And Stereo Calibration function: (rms,K1, D1, K2, D2, R, T) = cv2.fisheye.stereoCalibrate( objectPoints, leftImagePoints, rightImagePoints, K_left, D_left, K_right, D_right, imageSize, flags = flags)

"

Got an error in stereo vision fish eye camera calibration

The error I am geting is: error: (-5:Bad argument) When the input arrays in add/subtract/multiply/divide functions have different types, the output array type must be explicitly specified in function 'arithm_op'

function related imagesize

"

filenames = [] objectPoints = [] imagePoints = [] imageSize = None for imagePath in sorted(imagePaths): image = cv2.imread(imagePath) grayImage = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)

    newSize = grayImage.shape[::-1]
    if imageSize != None and newSize != imageSize:
        raise ValueError(
                "Calibration image at {0} is not the same size as the others"
                .format(imagePath))
    imageSize = newSize
    ret, corners = cv2.findChessboardCorners(grayImage,
            CHESSBOARD_SIZE, cv2.CALIB_CB_FAST_CHECK)

And Stereo Calibration function: (rms,K1, D1, K2, D2, R, T) = cv2.fisheye.stereoCalibrate( objectPoints, leftImagePoints, rightImagePoints, K_left, D_left, K_right, D_right, imageSize, flags = flags)

"