Skip to content

wtrelease/Vision-Racing

Repository files navigation

Vision Racing

Description

Computer vision racing game for final project of Olin College Software Design Spring 2018. The racing game utilizes OpenCV both for map creation and movement control, and incorporates AI through virtual opponents.

Authors

  • Walker Trelease
  • Jamie O'Brien
  • Shyheim Russell

Setup

Install pygame package

pip install pygame

Install PIL image processing library

pip install PIL

Install openCV computer vision library

pip install opencv-python

Install requirements for this project

pip install -r requirements.txt

Documentation

Final video can be found here
Poster can be found here

Usage

To run the game, run the file racing_game.py, and answer the question, “Would you like to capture a new map?” Responding no to this question will result in a selection of pre-existing maps to choose from. Responding yes to this question will activate your webcam, expecting to see a drawing of a map that it will convert into a virtual map to race on. It will then list available maps and you can choose one by typing the name without a file extension at which point the game will begin, and the cars can be controlled via arrow keys.

License

Copyright (c) 2018 Walker Trelease, Shyheim Russell, Jamie O’Brien

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Tip jar

Idk you could venmo us
@walker-trelease

About

Computer vision racing game for final project of Olin College Software Design Spring 2018.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages