Giter Club home page Giter Club logo

tv's Introduction

RGB webcam game controller

Main project in ./Project.
See ./Project/README.md for details on the c++ app.

This project was built with Opencv v3.1.0.
We can quickly build and test with a higher version by using docker.

Build Docker

Check Makefile.
First, we build the docker container (you can use the commands in Dockerfile on your own OS if you want...).

make build-docker

Run Docker

After building the container, open xhost on your host OS.
WARNING: this is a quick development hack.
Running the following command will make your system vulnerable.
Run on trusted networks!

# Open xserver on host (HIGHLY DANGEROUS, ONLY DO THIS IN A TRUSTED HOME NETWORK).   
xhost +

# When finished, close it with:
xhost -

Run the docker container.

make run-docker

Inside the container:

# Test X forwarding.
xeyes

# Clear old build files.
rm -rf ./*

# Build new app.
cmake ../src
make
./detector

This version will only work if you specify input files in detector.conf. We can't capture webcam with this Docker setup.

Build and run on host

See commands in Dockerfile.

Other dependencies

For the program to generate user input, you will need to install packages xdotool and wmctrl. $ sudo apt-get install xdotool wmctrl

You can adjust the parameters in file detector.conf.

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.