Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Downloads

  • install py opencv and mediapipe inside blender.py

Missing 1 full-res photo, 1 file, as this post has not yet been imported.

Content

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"])

Files

Previews only

Script to install Opencv and Mediapipe inside of Blender

To get the file got to https://www.patreon.com/posts/54890147 Or copy and paste this text on the scripts tab of blender: ------------------------------------ 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"])