Ask Your Question

Kush's profile - activity

2018-08-23 08:52:02 -0600 commented question Got an error in stereo vision fish eye camera calibration

I think it is talking about cv2.fisheye.stereocalibrate because there is no function like 'arithm_op' when I added image

2018-08-23 08:30:48 -0600 commented question Got an error in stereo vision fish eye camera calibration

I think it is talking about cv2.fisheye.stereocalibrate because there is no function like 'arithm_op' when I added image

2018-08-23 08:29:49 -0600 commented question Got an error in stereo vision fish eye camera calibration

I think it is talking about cv2.fisheye.stereocalibrate because there is no function like 'arithm_op'

2018-08-23 08:15:22 -0600 edited question Got an error in stereo vision fish eye camera calibration

Got an error in stereo vision fish eye camera calibration The error I am geting is: error: (-5:Bad argument) When the in

2018-08-23 08:14:52 -0600 edited question Got an error in stereo vision fish eye camera calibration

Got an error in stereo vision fish eye camera calibration The error I am geting is: error: (-5:Bad argument) When the in

2018-08-23 08:14:09 -0600 edited question Got an error in stereo vision fish eye camera calibration

Got an error in stereo vision fish eye camera calibration The error I am geting is: error: (-5:Bad argument) When the in

2018-08-23 08:13:34 -0600 edited question Got an error in stereo vision fish eye camera calibration

Got an error in stereo vision fish eye camera calibration The error I am geting is: error: (-5:Bad argument) When the in

2018-08-23 08:13:00 -0600 asked a question Got an error in stereo vision fish eye camera calibration

Got an error in stereo vision fish eye camera calibration The error I am geting is: error: (-5:Bad argument) When the in

2018-08-23 08:05:48 -0600 marked best answer TypeError: R is not a numpy array, neither a scalar

I am trying to do stereo fish eye camera calibration using OpenCV and Python Here is my code:

Main part of the code for stereo calibration

N_OK = len(leftImagePoints)

objecPoints = np.array([objectPoints]*len(leftImagePoints), dtype=np.float64)
leftImagePoints=np.asarray(leftImagePoints, dtype=np.float64)
rightImagePoints=np.asarray(rightImagePoints, dtype=np.float64)

objectPoints = np.reshape(objectPoints,(N_OK, 1, CHESSBOARD_SIZE[0]*CHESSBOARD_SIZE[1],3))
leftImagePoints = np.reshape(leftImagePoints, (N_OK, 1, CHESSBOARD_SIZE[0]*CHESSBOARD_SIZE[1], 2))
rightImagePoints = np.reshape(rightImagePoints,(N_OK, 1, CHESSBOARD_SIZE[0]*CHESSBOARD_SIZE[1], 2)) 

K_left = np.zeros((3, 3))
D_left = np.zeros((4, 1))

K_right = np.zeros((3, 3))
D_right = np.zeros((4, 1))


R = [np.zeros((1, 1, 3), dtype=np.float64) for i in range(MAX_IMAGES)]
T = [np.zeros((1, 1, 3), dtype=np.float64) for i in range(MAX_IMAGES)]

print("Calibrating left fisheye camera...")

rms, _, _, _, _ = cv2.fisheye.calibrate(objectPoints,leftImagePoints,imageSize, K_left,D_left,R,T,calibration_flags,      (cv2.TERM_CRITERIA_EPS+cv2.TERM_CRITERIA_MAX_ITER, 30, 1e-6))

print("calibrating right fisheye camera...")

rms, _, _, _, _ = cv2.fisheye.calibrate(objectPoints,rightImagePoints, imageSize,K_right,D_right,R,T,calibration_flags, (cv2.TERM_CRITERIA_EPS+cv2.TERM_CRITERIA_MAX_ITER, 30, 1e-6))

print("calibrating both fisheye cameras together...")

(rms, _, _, _, _) = \
  cv2.fisheye.stereoCalibrate(
     objectPoints,
     leftImagePoints,
     rightImagePoints,
     K_left,
     D_left,
     K_right,
     D_right,
     imageSize,
     R,
     T,
     (cv2.fisheye.CALIB_RECOMPUTE_EXTRINSIC + cv2.fisheye.CALIB_CHECK_COND + cv2.fisheye.CALIB_FIX_SKEW)
    );

*error: -Traceback (most recent call last): File "fisheye_calib1.py", line 176, in <module> (cv2.fisheye.CALIB_RECOMPUTE_EXTRINSIC + cv2.fisheye.CALIB_CHECK_COND + cv2.fisheye.CALIB_FIX_SKEW) TypeError: R is not a numpy array, neither a scalar *

I am able to do calibration of individual camera but it is throwing errors when it comes to stereo fisheye camera calibration. ' Have I declared R & T in right manner' It is giving error (SystemError: new style getrags format but argument is not a tuple) If anyone could guide me with this would be great help.

2018-08-23 08:05:48 -0600 received badge  Scholar (source)
2018-08-23 07:12:46 -0600 commented answer TypeError: R is not a numpy array, neither a scalar

Now; I am facing a different when I added ImageSizeerror: (-5:Bad argument) When the input arrays in add/subtract/multip

2018-08-23 07:12:34 -0600 commented answer TypeError: R is not a numpy array, neither a scalar

Now; I am facing a different when I added ImageSizeerror: (-5:Bad argument) When the input arrays in add/subtract/multip

2018-08-23 07:12:08 -0600 commented answer TypeError: R is not a numpy array, neither a scalar

Now; I am facing a different when I added ImageSizeerror: (-5:Bad argument) When the input arrays in add/subtract/multip

2018-08-23 07:11:33 -0600 commented answer TypeError: R is not a numpy array, neither a scalar

Now; I am facing a different when I added ImageSizeerror: (-5:Bad argument) When the input arrays in add/subtract/multip

2018-08-23 06:45:40 -0600 commented answer TypeError: R is not a numpy array, neither a scalar

(rms, _, _, _, _) = cv2.fisheye.stereoCalibrate( objectPoints, leftImage

2018-08-23 05:13:45 -0600 edited question TypeError: R is not a numpy array, neither a scalar

TypeError: R is not a numpy array, neither a scalar I am trying to do stereo fish eye camera calibration using OpenCV an

2018-08-23 04:01:41 -0600 commented answer TypeError: R is not a numpy array, neither a scalar

I have tried that it but its not working. It is giving another error. SystemError: new style getrags format but argume

2018-08-23 03:24:45 -0600 commented question TypeError: R is not a numpy array, neither a scalar

I have edited my code with error.

2018-08-23 03:24:19 -0600 received badge  Editor (source)
2018-08-23 03:24:19 -0600 edited question TypeError: R is not a numpy array, neither a scalar

TypeError: R is not a numpy array, neither a scalar I am trying to do stereo fish eye camera calibration using OpenCV an

2018-08-23 03:04:21 -0600 asked a question TypeError: R is not a numpy array, neither a scalar

TypeError: R is not a numpy array, neither a scalar I am trying to do stereo fish eye camera calibration using OpenCV an