Wayward drivers could soon be getting a nudge in the right direction thanks to a computer program created by researchers from North Carolina State University.

The program allows a computer to understand what a camera is looking at and makes decisions based on what it sees. If a car strays from its lane the program will detect the lane change and set the car back on course without human control.

The program uses algorithms to sort visual data and make decisions related to finding the lanes on a road, detecting how those lanes change as a car is moving, and controlling the car to stay in the correct lane. The researchers admit that there are already some vision systems out there that can do lane finding, but say the program is able to maintain an awareness of multiple lanes and traffic in those lanes as well.

“We develop computer vision programs, which allow a computer to understand what a video camera is looking at – whether it is a stop sign or a pedestrian. For example, this particular program is designed to allow a computer to keep a car within a lane on a highway, because we plan to use the program to drive a car,” says Dr. Wesley Snyder, a professor of electrical and computer engineering at NC State and co-author of a paper describing the research.