官方地址:
https://github.com/cgtinker/BlendArMocap
https://github.com/cgtinker/BlendArMocap/releases
https://cgtinker.github.io/BlendArMocap/installation/manual_dependency_installation.html#gather-information
查看python执行文件路径
1 2 |
import sys print(sys.executable) |
如果blendArMocap插件内install有失败,手动安装的话,
进入Blender内置python的路径
1 2 3 4 5 6 7 |
cd /Applications/Blender.app/Contents/Resources/3.4/python/bin/ ./python3.10 -m ensurepip # 安装缺失的库 pip3 install attrs -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com pip3 install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple --verbose pip3 install opencv-contrib-python==4.8.0.76 -i https://pypi.tuna.tsinghua.edu.cn/simple --verbose pip3 install mediapipe -i https://pypi.tuna.tsinghua.edu.cn/simple --verbose |
安装后测试
1 2 |
import cv2 cap = cv2.VideoCapture(0) |
创建一个启动Blender的sh程序,保存为文件 BlendArMocap.sh 。
1 2 3 4 5 |
#!/usr/bin/env bash echo "启动Blender" cmd="'/Applications/Blender.app/Contents/MacOS/Blender'" bash -c "nohup ${cmd} >/dev/null 2>&1 &" exit |
获取文件的权限:
1 2 |
chmod 777 BlendArMocap.sh ./BlendArMocap.sh |
其它资源:
pip镜像:
百度:https://mirror.baidu.com/pypi/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
豆瓣源:http://pypi.douban.com/simple/
腾讯源:http://mirrors.cloud.tencent.com/pypi/simple
清华大学:https://pypi.tuna.tsinghua.edu.cn/simple/
华为镜像源:https://repo.huaweicloud.com/repository/pypi/simple/
华中科技大学:http://pypi.hustunique.com/
中国科学技术大学:http://pypi.mirrors.ustc.edu.cn/simple/
将Blender内置python软连接为系统的python:
1 2 |
cd /Applications/Blender.app/Contents/Resources/3.4/python/bin/python3.10 ln -s /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 python3.10 |
按需安装macos可能须要的库:
1 2 3 4 5 6 7 8 9 10 11 12 |
brew install gstreamer -v brew install gst-plugins-base -v brew install libdc1394 -v brew install eigen -v brew install freetype -v brew install harfbuzz -v brew install hdf5 -v brew install sgemm -v brew install openblas -v brew install gflags -v brew install glog -v brew install tesseract -v |
插件下载:
BlendArMocap1.6.1链接: https://pan.baidu.com/s/1pz0WEaJRYwbXfw_yoU7Zuw?pwd=1234 提取码: 1234
- end
本文由崔维友 威格灵 cuiweiyou vigiles cuiweiyou 原创,转载请注明出处:http://www.gaohaiyan.com/4383.html
承接App定制、企业web站点、办公系统软件 设计开发,外包项目,毕设