NokiMo
cebstudios
cebstudios

patreon


Script to install Opencv and Mediapipe inside of Blender (Windows)

You can download the file and open on the script tab inside blender, or copy the text and do like its show in the video

-----------------

import subprocess
import sys
import os

# path to python.exe
python_exe = os.path.join(sys.prefix, 'bin', 'python.exe')
py_lib = os.path.join(sys.prefix, 'lib', 'site-packages','pip')

# install opencv
subprocess.call([python_exe, py_lib, "install", "opencv_python"])
# install mediapipe
subprocess.call([python_exe, py_lib, "install", "mediapipe"])

Script to install Opencv and Mediapipe inside of Blender (Windows)

Comments

Did it work?

thank you very much, those links were very helpful.

The problem is that I have no clue of how it works on Mac systems, and dont have a way to test it. But I think the error you are having is because of "python.exe" which is targetted to windows systems. Please take a look at these 2 links that shows some explanantions that can help you make it work https://blender.stackexchange.com/questions/211697/installing-module-to-blenders-python-mac https://blender.stackexchange.com/questions/5287/using-3rd-party-python-modules


Related Creators