Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.41 KB

README.md

File metadata and controls

23 lines (15 loc) · 1.41 KB

Bachelor-WebcamShooter

Project

Webcam shooter is a simple shooter video game with the goal of shooting barrels. Once the user is successfully connected they can aim with his webcam and shoot the barrels.

Implementation

WebcamShooter consists of two applications. A server-side and client-side application. Server-side application is written in Unity, while client-side application (WebcamShooter) uses Java and OpenCV 3 library. Goal of this bachelor thesis was to use existing solution to implement video game controller. Bachelor thesis with abstract in English can be found in the "Bachelor" folder.

How to start

  1. It is necessary to build both Unity and Java applications first.
  2. Two computers (one for Unity and one for Java application) need to be connected via LAN cable and have connection established.
  3. Unity and Java applications can now be started on their computers.
  4. Establish connection by clicking on "Connect" button in Java application.
  5. User can now aim with their webcam. Once the user correctly aims at the Unity application, rectangle will be drawn on the screen. User shoots by pressing the left mouse button anywhere on the camera panel of the Java application.

Useful links

  1. How to install OpenCV for Java: https://opencv-java-tutorials.readthedocs.io/en/latest/01-installing-opencv-for-java.html#install-opencv-3-x-under-windows
  2. OpenCV releases: https://opencv.org/releases.html