NokiMo
cebstudios
cebstudios

patreon


Dev Preview: Mediapipe multi convert video to mocap

I made a change in the code, so now, if you want to load a single video, on the load button you choose a video.

If you want to load lots of videos, just choose a folder and the script will load all the mp4 files i that folder and create a mocap version of it, keeping each video file in a collection with the name of the video 


The easiest way to install the python packages inside blender to be able to use this blend file and run your own pose estimation, is doing this:

go to your blender installation folder, and copy its path

In this example, the path to blender is:

D:\Blender\Blender_exe\blender-2.93.1-windows-x64\2.93

replace the path below with the one in your system:

-- Installing Mediapipe

D:\Blender\Blender_exe\blender-2.93.1-windows-x64\2.93\python\bin\python.exe D:\Blender\Blender_exe\blender-2.93.1-windows-x64\2.93\python\lib\site-packages\pip install mediapipe

-- Installing OpenCV

D:\Blender\Blender_exe\blender-2.93.1-windows-x64\2.93\python\bin\python.exe D:\Blender\Blender_exe\blender-2.93.1-windows-x64\2.93\python\lib\site-packages\pip install opencv-python

Dev Preview: Mediapipe multi convert video to mocap

Comments

There is a big problem for people using blender installed. To do what is described, you must use a CMD open as Administrator. To open as administrator, you will need to right click on the CMD link and choose "run as administrator" then try to run this code again. I usually suggest for people to try this with a portable blender (the one you download in a ZIP file from blender.org.) Its easier to install since you probably wont need to go inside windows Program Files folder If you try the portable installation, you could unzip it in a C:\blender folder. It will be easier to run the code.

>>> C:\Program Files\Blender Foundation\Blender 2.93\python\bin\python.exe Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\python\lib\code.py", line 63, in runsource code = self.compile(source, filename, symbol) File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\python\lib\codeop.py", line 178, in __call__ return _maybe_compile(self.compiler, source, filename, symbol) File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\python\lib\codeop.py", line 106, in _maybe_compile raise err1 File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\python\lib\codeop.py", line 93, in _maybe_compile code1 = compiler(source + "\n", filename, symbol) File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\python\lib\codeop.py", line 143, in __call__ codeob = compile(source, filename, symbol, self.flags, True) File "", line 1 SyntaxError: unexpected character after line continuation character >>> C:\Program Files\Blender Foundation\Blender 2.93\python\lib\site-packages\pip install opencv-python

i got this


Related Creators