Skip to content

Generic/iOS Lane Departure Warning 🛣Weekend project/quick hack

Notifications You must be signed in to change notification settings

iafonov/lane-guard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Lane Departure Warning

Code can be linked as part of an iOS application or run as a standalone desktop application (for debug purposes).

Performs well in real time on iPhone 6.

Built for own entertaiment.

Approach

↓ Setup perspective
↓ Feed frame from file or camera
↓ Warp perspective (road → screen)
↓ Grayscale
↓ Blur
↓ Canny
↓ Hough lines
↓ Detect lanes
↓ Unwrap perspective for lane points coordinates (screen → road)
↓ Get distance from car bounds to lanes (in inches)
↓ Process data, update state, fire events to outside world
↺ Repeat

Demo

City:
day

Highway:
straight_night

Changing lane:
changing_lane

Taking exit:
taking_exit

Perspective transform/dashboard:
perspective2

Enjoy!

About

Generic/iOS Lane Departure Warning 🛣Weekend project/quick hack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages