Camera matrix to correct image distortion -python

asked 2018-10-17 05:00:22 -0600

updated 2018-10-17 05:08:00 -0600

berak gravatar image

Hello everyone As i can see alot of other people have also had some problems with calibrating their camera. Im in need to calibrate gopro hero 7 camera such that i can a more accurate image. Im using the tutorial script supplied by OpenCV to find the camera matrix and distortion coeff. however it might need to be improved abit (RMS 0.77). But my main problem is when i want to apply my camera matrix and distortion coeff to correct new images.C:\fakepath\test.PNG Here can be seen 2 images - one before the "correction" and the second one after the correction. However it does not look quite right and im not sure what im doing wrong. Im using cv2.getOptimalNewCameraMatrix and cv2.undistort. My Roi are returning (0,0,0,0).

I really hope that some one can help me out

edit retag flag offensive close merge delete

Comments

looks like you have to go back to the calibration again. make sure, you got the corners of your images covered by the chessboard (most distortion is there) .

berak gravatar imageberak ( 2018-10-17 05:24:06 -0600 )edit