akshitagupta15june / lane_detection_opencv

The main emphasis of this project is to find the further ways which can be used further to improve the result of lane detection algorithms. Join Discord channel for discussion.
https://discord.gg/CWqgNWbNye
MIT License
37 stars 37 forks source link

Camera calibration and distortion calculation #34

Closed bharath-acchu closed 4 years ago

bharath-acchu commented 4 years ago

Task: Compute the camera calibration matrix and distortion coefficients given a set of chessboard images/curved road lane images.

hint: OpenCV provide some really helpful built-in functions for the task on camera calibration. First of all, to detect the calibration pattern in the calibration images, we can use the function cv2.findChessboardCorners(image, pattern_size).

Once we have stored the correspondeces between 3D world and 2D image points for a bunch of images, we can proceed to actually calibrate the camera through cv2.calibrateCamera(). Among other things, this function returns both the camera matrix and the distortion coefficients, which we can use to undistort the frames.

Anujg935 commented 4 years ago

you can go ahead with this issue.