Giter VIP home page Giter VIP logo

cv-hackathon's Introduction

Computer Vision Hackathon

Initialize environment

Clone this repository locally:

git clone [email protected]:Sam-Sweere-Vantage-AI/cv-hackathon.git

Go into the repository directory:

cd cv-hackathon

Create a virtual environment:

python3 -m venv venv

(Developed on Python 3.10.4 but should work with any python 3.X)

Activate the environment:

source venv/bin/activate

Install the dependencies:

pip install -r requirements.txt

The Goal

The game itself consists out of a simple dodge game. Dodge the obstacles to stay alive as long as possible! However, you cannot control the Vantage player with your mouse or keyboard. Only with your webcam!

The team/player that is able to reach the furthest level wins!

Creating your custom webcam controller

You can build your webcam controller in the camera_controller.py file. This file contains the CameraController class. Every tick of the game, the get_location of this class is called, given the latest input image. Using this input image, you have to control the player by returning the x and y coordinates of the player. You can use any technique you want as long as the final x and y coordinates are based on the image.

Finally, you can also return an image that will be drawn in the game's background. By default, this is the input image. But for visualization and debugging, it can be practical to draw/change this image.

Playing the game

Run python3 run_game.py

For fairness, stay out of the dodge_game files.

cv-hackathon's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.