All Projects → surya-veer → Movement Tracking

surya-veer / Movement Tracking

UP - DOWN - LEFT - RIGHT movement tracking.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Movement Tracking

Rpa Python
Python package for doing RPA
Stars: ✭ 2,449 (+546.17%)
Mutual labels:  ai, opencv
Clashjs
Javascript AI battle game. Create your own battleship.
Stars: ✭ 196 (-48.28%)
Mutual labels:  ai, game
Smartopencv
🔥 🔥 🔥 SmartOpenCV是一个OpenCV在Android端的增强库,解决了OpenCV Android SDK在图像预览方面存在的诸多问题,且无需修改OpenCV SDK源码,与OpenCV的SDK解耦
Stars: ✭ 1,869 (+393.14%)
Mutual labels:  ai, opencv
Owl Bt
owl-bt is editor for Behavior trees. It has been inspired by Unreal engine behavior trees in a way, that it supports special node items like decorators and services. This makes trees smaller and much more readable.
Stars: ✭ 112 (-70.45%)
Mutual labels:  ai, game
Aitrack
6DoF Head tracking software
Stars: ✭ 262 (-30.87%)
Mutual labels:  ai, game
Snake Ai Reinforcement
AI for Snake game trained from pixels using Deep Reinforcement Learning (DQN).
Stars: ✭ 123 (-67.55%)
Mutual labels:  ai, game
Htframework
Unity HTFramework, a rapid development framework of client to the unity.
Stars: ✭ 179 (-52.77%)
Mutual labels:  ai, game
09 Zombierunner Original
First person shooter with Unity terrain and AI pathfinding (http://gdev.tv/cudgithub)
Stars: ✭ 64 (-83.11%)
Mutual labels:  ai, game
Caffe2 Ios
Caffe2 on iOS Real-time Demo. Test with Your Own Model and Photos.
Stars: ✭ 221 (-41.69%)
Mutual labels:  ai, opencv
Learnopencv
Learn OpenCV : C++ and Python Examples
Stars: ✭ 15,385 (+3959.37%)
Mutual labels:  ai, opencv
Bwapi
Brood War API
Stars: ✭ 1,482 (+291.03%)
Mutual labels:  ai, game
Facemoji
😆 A voice chatbot that can imitate your expression. OpenCV+Dlib+Live2D+Moments Recorder+Turing Robot+Iflytek IAT+Iflytek TTS
Stars: ✭ 320 (-15.57%)
Mutual labels:  ai, opencv
Warriorjs
🏰 An exciting game of programming and Artificial Intelligence
Stars: ✭ 8,673 (+2188.39%)
Mutual labels:  ai, game
Leelasabaki
Leela (Zero) integration with Sabaki.
Stars: ✭ 138 (-63.59%)
Mutual labels:  ai, game
Mage
Magic Another Game Engine
Stars: ✭ 1,180 (+211.35%)
Mutual labels:  ai, game
Classic Pool Game
Classic 8 Ball pool game written in JavaScript
Stars: ✭ 177 (-53.3%)
Mutual labels:  ai, game
Tic Tac Toe
An unbeatable game of Tic Tac Toe.
Stars: ✭ 57 (-84.96%)
Mutual labels:  ai, game
Korea Startups
🌟 국내 스타트업 목록 및 설명 🌟
Stars: ✭ 63 (-83.38%)
Mutual labels:  ai, game
Opensteer
OpenSteer is a C++ library to help build steering behaviors for autonomous characters in games and animation.
Stars: ✭ 202 (-46.7%)
Mutual labels:  ai, game
Overmind
AI for Screeps, a multiplayer programming strategy game
Stars: ✭ 320 (-15.57%)
Mutual labels:  ai, game

Realtime Face Movement Tracking

90 Lines of code to convert your face movement into keyboard commands.

Description

This is a basic face movement tracking that can convert face movement into keyboard commands like UP - DOWN - LEFT - RIGHT. I used facial landmarks to detect face and get the nose out of it for better referencing. I have created two versions of it, v1 is using a fixed reference boundary which not work expected properly because we need to come at the same position after each movement. To save this I created V2 which uses position change with respect to the previous position. This is more dynamic and easy to control the moves. No need to set position again and again.

movement-v1.py

In version1, I used a fixed reference boundary. If nose reference is out of boundary then I calculate the direction of movement. After getting direction I am converting it into keyboard commands using the keyboard library.

movement-v2.py

In version2, I am using reference change with respect to the previous position in a particular time window and then calculating the direction vector to get direction and converting it to keyboard command.

Dependencies

This is the list of dependencies for running this application. Use pip to install them.

  • opencv
  • keyboard
$ pip install -r requirements.txt

How to use

  1. Download or clone this repository.

  2. Extract to some location.

  3. First, run movement-v1.py (for fix boundary) or run movement-v2.py(for dynamic movement)
    NOTE: If you are getting 215 assertion failed!! on line 81 check this (https://github.com/surya-veer/movement-tracking/issues/4#issuecomment-664018021)

  4. open any online atari game like Subway surfers or temple run.

  5. Start doing movements to play game. It will press up-down-left-right based on your movements.

Fun with face movements

Open any online game on the browser which needs UP-DOWN-LEFT-RIGHT movements following games, you can find many games if you search on google.

  1. Subway surfer https://www.kiloo.com/subway-surfers/
  2. Temple run https://m.plonga.com/adventure/Temple-Run-2-Online-Tablet

You can do a lot more things by the small code change.

** SUPPORT OPEN SOURCE **

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].