Top Banner
Aurelijus Banelis Webcam based games
22

Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

Aug 24, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

Aurelijus Banelis

Webcambased games

Page 3: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

Webcambased games

Page 4: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

WHAT

HOW

WHEN

Introduction, what are WebCam based games

Implementation details, how does it work

Tips from practice,when to use

Page 5: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

WHAT

HOW

WHEN

Introduction, what are WebCam based games

Implementation details, how does it work

Tips from practice,when to use

Page 6: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

Control your game without

keyboard or mouseInstead: using movement, special objects

or other visual techniques

WebCam based games are unique,because you can:

Page 7: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

DEMOReplacing traditional input devices

● Click on flying object● Buttons-like interactive areas● Scrollbars-like interactive areas

Page 8: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

DEMOResults of interaction

● Draw on top of camera view● Manipulate WebCam output● Change external visualisation

Page 9: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

WHAT

HOW

WHEN

WebCam as motion input device

Implementation details, how does it work

Tips from practice,when to use

Page 10: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

WHAT

HOW

WHEN

WebCam as motion input device

Implementation details, how does it work

Tips from practice,when to use

Page 11: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

Based on computer vision library

OpenCVhttp://opencv.org/ https://github.com/aurelijusb/webcam-games

Page 12: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

./CvGames debug

DEMODebugging camera data

● Analysing current frame● Comparing 2 frames● Comparing history of input data

Page 13: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

Precisionand noise

It is all about the light

● Recognising color/shape vs changes● Low light, white balance, shadows

Page 14: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

WHAT

HOW

WHEN

WebCam as motion input device

OpenCV for retrieval and analysis of each frame

Tips from practice,when to use

Page 15: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

WHAT

HOW

WHEN

WebCam as motion input device

OpenCV for retrieval and analysis of each frame

Tips from practice,when to use

Page 16: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

Webcam not mainstream

● Fun to learn OpenCV via games but...● Versus: Kinect, wii, PS move● Responsive in all environments

Page 17: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

Controlled environment

● Example: Advertise in a conference● Close to light source, solid background● Visuals/games specific to the audience

Page 18: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

It is stillthe game

● Make it fun: scores, challenges, levels...● Guide the player: intro video, reminders● Balance: Usable vs unique

Page 19: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

WHAT

HOW

WHEN

WebCam as motion input device

OpenCV for retrieval and analysis of each frame

Own the light, keep it fun,use as advertisement

Page 20: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

Webcambased games

Fork and use it in your communitygit clone [email protected]:aurelijusb/webcam-games.git

Page 21: Webcam - FOSDEM€¦ · WebCam based games Implementation details, how does it work Tips from practice, when to use. WHAT HOW WHEN Introduction, what are WebCam based games Implementation

Aurelijus Banelis

Webcambased games

Questions?