joevenner / control-3d-character-using-python Goto Github PK
View Code? Open in Web Editor NEWControlling 3D character's Face Movements using OpenCV and pyhton
License: MIT License
Controlling 3D character's Face Movements using OpenCV and pyhton
License: MIT License
Can I do this on Linux Mint OS?
I installed Blender using Software Manager in Linux Mint (which is 2.91.0)
where do I install the 2 libraries?
Thanks for your amazing workοΌ
Could you kindly tell me how to get the bones parameter and how to use it? eg. the hand?
Python: Traceback (most recent call last):
File "c:\users\waheguru\downloads\Vincent.blend\OpenCVAnimOperator.py", line 196, in modal
cv2.error: OpenCV(4.5.2) π error: (-5:Bad argument) in function 'circle'
Overload resolution failed:
- Can't parse 'center'. Sequence item with index 0 has a wrong type
- Can't parse 'center'. Sequence item with index 0 has a wrong type
location: :-1
I tried all the possible way whatever I knew. But no luck.
Hi,
I Really loved the face capture video. But when I tried it with blender 2.81a, I got lots of errors. Might be because of python version and at the end even though I did tried everything I could do, on blender 2.81a when I run the python code on script, blender just closes and doesn't opens project. So I tried it with blender 3.1. But even though I get no error from code, When I clicked the OpenCV Animation Panel I get this error. Could you help me please?
I hope you could help me with a Python error message I didn't manage to resolve.
I followed your steps and had the following error message:
File "C:\Users\yrfri\Documents\Blender\vincent facial mocap\Vincent(1).blend\OpenCVAnimOperator.py", line 30, in
File "C:\Users\yrfri\Documents\Blender\vincent facial mocap\Vincent(1).blend\OpenCVAnimOperator.py", line 43, in OpenCVAnimOperator
cv2.error: OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-r2ue8w6k\opencv_contrib\modules\face\src\facemarkLBF.cpp:487: error: (-5:Bad argument) No valid input file was given, please check the given filename. in function 'cv::face::FacemarkLBFImpl::loadModel'
I'm using Blender 2.91, Python 3.9 on my computer and Python 3.77 for Blender. I tried the Blender Python version to run promlt as administrator.
Here is what I tried to do in order to resolve the issue:
Updated or re-installed all applications (python, Blender...)
followed the exchange on your Youtube:
tried path name with \, /, "", '',
tried to modify: self._cap = cv2.VideoCapture(0) into (1) and back to the original script.
verified that the file size is 55.5MP
The error message is the same.
Any input would be highly appreciated, I',m really wish to experience your facial mocap.
thanks
Please help me with this
cd "C:\Program Files\Blender Foundation\Blender 2.83\2.83\python\bin"
Traceback (most recent call last):
File "C:\Users\Admin\Downloads\Vincent (3).blend\OpenCVAnimOperator.py", line 196, in modal
cv2.error: OpenCV(4.5.2) π error: (-5:Bad argument) in function 'circle'
Overload resolution failed:
- Can't parse 'center'. Sequence item with index 0 has a wrong type
- Can't parse 'center'. Sequence item with index 0 has a wrong type
location: :-1
Thank you so much for your amazing job and detailed tutorial on Youtube!
I follow every steps carefully whilst unfortunately met some issues need your kind help if possible. Thanks very much in advance!
There is no further error message when running OpenCVAnimOperator.py,
One question: if I use the build-in webcam on my laptop, is the setting of "cv2" in the file "OpenCVAnimOperator.py" needs to be modified? {lease advise. Thanks!
I think it's better for you to figure the possible root causes out if the Vincent.blend file is attached here:
Vincent.zip
and the paths on my Laptop are listed below for your information:
D:\Blender_Practice\MotionCapture\GSOC2017-master
D:\Blender_Practice\MotionCapture\control-3d-character-using-python-master
Laptop System information:
Intel i7-8750H [email protected]
32GB DRAM
Win-10 Ver.2004
Nvidia GTX 1050Ti
USB2.0 UVC WebCam (Build-in on laptop Screen)
Please feel free to let me know should you need any more information. Thanks so much for your talented help in advance!
The error I get is as follows:
Python: Traceback (most recent call last):
File "E:\12 - PROYECTOS BLENDER\Profesor\Profesor02.blend\OpenCVAnimOperator.py", line 196, in modal
cv2.error: OpenCV(4.5.3) π error: (-5:Bad argument) in function 'circle'
Overload resolution failed:
- Can't parse 'center'. Sequence item with index 0 has a wrong type
- Can't parse 'center'. Sequence item with index 0 has a wrong type
location: :-1
I have done everything that needed to be done, following a video on Youtube. And I keep getting this error
Thanks for your nice work, would you mind telling me how you get model points, whether it is from Vincent.blender and if I want to get more points, what should I do?
Hi
I want to use this character for this module.
https://www.cgtrader.com/items/979192/download-page
But I do not have its bone,eyelids and head values which are mentioned in OpenCVAnimOperator.py
Kindly tell me how to get those values if I use another 3d model
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.