Skip to content

Program to detect lanes in the game NFS (Need for Speed) Underground 2 in real time.

License

Notifications You must be signed in to change notification settings

sairajk/Lane-Detection-in-NFS-Underground-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Detecting Lanes in NFS Underground 2

This project aims to detect lanes in one of the popular racing games, NFS Underground 2. For this, I used various image precessing techniques to detect lanes frame by frame from the image stream captured from the game. All the processing is done in real time, i.e. the lanes are detected simultaneously as the game is played.

Processing

The captured frames from the game are [almost] processed in real time, i.e. the lanes are detected and shown in a separate window at the same time as the game is played. I was able to process about 12 to 13 frames per second with a 5th Gen i3 processor and 8Gb RAM. The average time taken for processing each frame was around 0.08 sec. OpenCV was used used for all image processing tasks.

images/image_5.png

Results

Some results are shown below :

images/image_9.png images/image_7.png

images/image_8.png images/image_6.png

images/image_2.png images/image_3.png

images/image_4.png images/image_1.png

From Ideas to Code

The original plan was to somehow drive the car in this game, but due to inconsistent lane markings and never ending night this is what I ended up with.

About

Program to detect lanes in the game NFS (Need for Speed) Underground 2 in real time.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages