Self Driving Car

[Lane Detection] Using OpenCV

nicedaddy 2021. 5. 6. 09:03

Udacity의 Advanced Lane Dtection 자료들을 리뷰하면서 Steering Image를 적용해 Steering을 시각화 해봤다.

예전에 검토했던 코드에서 일부를 수정해서 적용했다. 회전을 구현하기 위해서 2가지 opencv 함수를 적용했다.

cv2.getRotationMatrix2D() , cv2.warpAffine() 

Steering Image

참고한 Github 코드이다. 그리고, 영상은 예전에 촬영한 경부고속도의 영상을 적용했다.

github.com/KushalBKusram/AdvancedLaneDetection

-> perspective_transform에서 src,dst의 좌표수정이 필요하다.

-> Camera의 Calibration은 기존의 것을 사용해서 카메라의 왜곡 이미지를 풀지 못하고 적용해서 안정적이지 못하다.

 

Virtual Steering 를 적용한 결과

 

참고) 

opencv-python.readthedocs.io/en/latest/doc/10.imageTransformation/imageTransformation.html

 

이미지의 기하학적 변형 — gramman 0.1 documentation

변환이란 수학적으로 표현하면 아래와 같습니다. 예로는 사이즈 변경(Scaling), 위치변경(Translation), 회전(Rotaion) 등이 있습니다. 변환의 종류에는 몇가지 분류가 있습니다. Scaling Scaling은 이미지의

opencv-python.readthedocs.io

github.com/uppala75/CarND-Advanced-Lane-Lines

 

uppala75/CarND-Advanced-Lane-Lines

Contribute to uppala75/CarND-Advanced-Lane-Lines development by creating an account on GitHub.

github.com

참고) Udacity Advanced Line Detection submissions

github.com/uppala75/CarND-Advanced-Lane-Lines

 

uppala75/CarND-Advanced-Lane-Lines

Contribute to uppala75/CarND-Advanced-Lane-Lines development by creating an account on GitHub.

github.com

github.com/nicedaddy/Advanced_Lane_Detection_1

 

nicedaddy/Advanced_Lane_Detection_1

Advanced lane detection using computer vision. Contribute to nicedaddy/Advanced_Lane_Detection_1 development by creating an account on GitHub.

github.com

github.com/nicedaddy/Advanced-Lane-Detection

 

nicedaddy/Advanced-Lane-Detection

Computer Vision algorithm to compute road curvature and lane vehicle offset using OpenCV Image Processing, Camera Calibration, Perspective Transform, Color Masks, Sobels and Polynomial Fit. - niced...

github.com

https://github.com/windowsub0406/SelfDrivingCarND/tree/master/SDC_project_4

 

windowsub0406/SelfDrivingCarND

Contribute to windowsub0406/SelfDrivingCarND development by creating an account on GitHub.

github.com