Giter Site home page Giter Site logo

joevenner / control-3d-character-using-python Goto Github PK

View Code? Open in Web Editor NEW
156.0 156.0 45.0 43 KB

Controlling 3D character's Face Movements using OpenCV and pyhton

License: MIT License

Python 100.00%
3d-models animation blender-python opencv-python

control-3d-character-using-python's Introduction

control-3d-character-using-python's People

Contributors

bhumilad avatar joevenner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

control-3d-character-using-python's Issues

Linux Mint OS

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?

Issue with Script

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.

WorkSpaceTool.setup(): error

OpenCVButton
Error
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?

Python OpenCV problem

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

Overload resolution failed

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

Screenshot 2021-05-14 173727

Python Script and Capture Motion Failures Need Your Help

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!

  1. The first issue is "Python script failed" when running OpenCVAnim.py, please find the attached jpg files for details.
    ErrorMessage_info_Running_OpenCVAnim_py
    ErrorMessage_System_Console_RunningOpenCAMnim_py

There is no further error message when running OpenCVAnimOperator.py,

NoError_info_Running_OpenCVAnimOperator_py
N0Error_System_Console_Running_OpenCVAnimOperator_py

  1. The second issue occurred when the "capture" button is clicked, the screen shots are shown as the attached jpg files below:
    ReportError_After_Clicking_Capture_Button
    ErrorMessage_Info_after-Clicking_Capture_Button
    ErrorMessage_System_After_Clicking_Catture_Button

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!

"Bad Argument" problem with "OpenCVAnimOperator".

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

how to get and use more model points

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.