GithubHelp home page GithubHelp logo

mrahsanahmad / posepipe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spectralvectors/posepipe

0.0 0.0 0.0 8.43 MB

Blender Python - Camera Motion Capture using OpenCV and Mediapipe

License: Apache License 2.0

Python 100.00%

posepipe's Introduction

PosePipe & Media Pipe

Blender Motion Capture using your camera or stream camera!

Screenshot GIF Stream

Note

This will install to Blender's Python path, rather than your system's.

Install

1 - Open Blender 2 - Download repo in zip file 3 - Go to Edit > Preferences > Add Ons > Install Add on, then select file 4 - Open the BlendyPose panel On Open is checks for dependencies for proper work, click Install Dependencies

5 - Click Start Camera! or Load Video File

Options Extra: - Flip Horizontal for selfies - Mask background

Install Manually python dependences

OSX:

  • /Applications/Blender.app/Contents/Resources/3.0/python/bin/pip3 install opencv-python mediapipe protobuf --target=/Applications/Blender.app/Contents/Resources/3.0/python/lib/python3.9

Troubles and solutions

Blender3 + Python3.10 on OSX: numpy.core._multiarray_umath

  • /Applications/Blender.app/Contents/Resources/3.0/python/bin/pip3 install numpy --target=/Applications/Blender.app/Contents/Resources/3.0/python/lib/python3.9 --upgrade

Blender3 + Python3.10 on OSX: mediapipe.python._framework_bindings

  • /Applications/Blender.app/Contents/Resources/3.0/python/bin/pip3 install mediapipe --upgrade --target=/Applications/Blender.app/Contents/Resources/3.0/python/lib/python3.9

Blender crash on connect to the camera:

  • You need extra OSX permissions to use Camera

  • Add access to the macbook camera for the terminal application

    Method 1: in Finder go to /Applications/Blender.app/Contents/MacOS/ click right click and Open in Terminal Method 2: in Terminal run /Applications/Blender.app/Contents/MacOS/Blender

    This solution

Camera setup:

  • -1 Linux
  • 0 (Windows, Osx build-in "laptop", Linux)
  • 1 (Osx iPhone)

Docs

Stream: Now you can connect to any stream camera using "JMPEG" format or RTSP stream. For simple camera stream I recomend to use ESP32 - Arduino > Examples > ESP32 > Camera > CameraWebServer - esp32cam-rtsp - esp32cam-example1 - esp32cam-example2

MediaPipe: - MediaPipe Documentation

Credits

forked from BlendyPose by Zonkosoft

BlendyPose is made using MediaPipe, OpenCV

Nicholas Renotte provided some Mediapipe knowledge.

Anton Sychev contribute and update code for run on Mac OSX

weixin_44834086 demonstrated how to downgrade protobuf, which makes mediapipe compatible with Blender 3 and up!

TODO

[x] modal notify of errors or no possibility to connect
[] save processed data to file
[] load data from processed file 

[x] separate methods mediapipe to file
[] add yolo engine
[x] add selector for preview -> original size video input | 800x600 | other resize

Knowledge of bugs

BUG: [x] prevent crash on intent to connect to camera (osx) [x] prevent crash on intent to connect to stream [] capture is deformed on vertical axie

posepipe's People

Contributors

spectralvectors avatar zonkypop avatar klich3 avatar marcfielding1 avatar piercelbrooks avatar

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.