SkillAgentSearch skills...

IMITECIO

Pose replication using Posenet

Install / Use

/learn @SAtacker/IMITECIO

README

IMITECIO

<p align="center"> <img src="docs/images/ImitecioLogoFree.png" alt="logo" width="250" height="250"> </p> <!-- TABLE OF CONTENTS -->

Table of Contents

<!-- ABOUT THE PROJECT -->

About The Project

Pose Estimation (& Replication) Based Game

  • Pose Estimation has been for a while in the deep learning industry. Considering the various applications of it, we aimed at creating a simple game at first. Some few things we intend to do further are mentioned at the end. Refer this documentation
<hr>

Game Demo

<hr>

Tech Stack

  • The Posenet model trained by Google is used.
  • For the Posenet Js to Python port this repo is used.
<!-- This section should list the technologies you used for this project. Leave any add-ons/plugins for the prerequisite section. Here are a few examples. -->

The rest is openCV for webcam input, Unity for NotEndlessRunner game and keyboard for keypresses. Although pynput is used , we prefer pywin32 for windows.

File Structure

IMITECIO
├───docs                                                                       ## Documents and Images
│   └───images
├───NotEndlessRunner                                                           ## Game Files
│   |
│   ├───Assets
│   │   ├───Animation
│   │   ├───Materials
│   │   ├───Prefab
│   │   ├───Raw Mocap Data
│   │   ├───Scenes
│   │   ├───Scripts
│   │   ├───Sprites
│   │   └───TextMesh Pro
│   │       ├───Documentation
│   │       ├───Fonts
│   │       ├───Resources
│   │       └───Sprites
│   ├───Library
|   |
│   ├───Logs
│   ├───obj
│   ├───Packages
│   └───ProjectSettings
├───OsX.app                                          ## Game for MacOs
│   └───Contents
│       ├───Frameworks
│       ├───MacOS
│       ├───MonoBleedingEdge
│       └───Resources
└───posenet                                          ## Main Python Files
    ├───MonoBleedingEdge
    │   ├───EmbedRuntime
    │  
    ├───NotEndlessRunner_Data
    │   ├───Managed
    │   └───Resources
    ├───posenet
    │   └───converter
    └───models                                       ## You may need to download the models initially.
        └───checkpoints
<!-- GETTING STARTED -->

Getting Started

Prerequisites & Installation

  • Tested on Windows
git clone https://github.com/SAtacker/IMITECIO.git
cd IMITECIO

In your Virtual Environment

pip install -r "requirements.txt"
python posenet\webcam_demo.py
<!-- RESULTS AND DEMO -->

Results and Demo

NotEndlessRunner

  • On Manipulating the code according to your requirements, you could use it to control most of the games.

Part 1
Part 2

Space Invaders

<!-- FUTURE WORK -->

Future Work

  • [x] Posenet tflite to Python - Single Person detection
  • [x] Posenet Based Game
  • [ ] Pose Estimation in 3d
  • [ ] Socket Code instead of Keyboard Presses
  • [ ] C++ Port for faster recognition
<!-- TROUBLESHOOTING -->

Troubleshooting

  • You may need to install tensorflow 1.15.0 or tensorflow 1.13 on your own.
  • There could be an issue only in the tensorflow installation.
  • However one small thing to remember is that multithreading does not guarentee the Game to run first . Meaning that the OpenCV window might appear later and gamethread before. We dont't have a fix for this. Rather press Alt + Tab to overcome this thing.
<!-- CONTRIBUTORS -->

Contributors

<!-- ACKNOWLEDGEMENTS AND REFERENCES -->

Acknowledgements and Resources

<!-- LICENSE -->

License

License

Related Skills

View on GitHub
GitHub Stars10
CategoryDevelopment
Updated4y ago
Forks3

Languages

C#

Security Score

65/100

Audited on Jun 2, 2021

No findings