Comments (8)
Just to add, I have tested it on my Mac and it evens works when everything is installed via homebrew.
from 4dface.
Hey, that's really cool! Great to hear you got it to run on Mac!
Thank you very much for reporting your success back! I'll update the readme soon :-)
Thanks!
from 4dface.
Hi,
I've tried above mac compilation many times, but it gives following errors when I try make. So, it creates makefile and others successfully, gives error on building the project.
RenderingParameters.hpp:124:12: error: no match for 'operator=' (operand types are 'glm::quat {aka glm::tquat<float, (glm::precision)0u>}' and 'glm::tmat4x4<float, (glm::precision)0u>')
rotation = zxy_rotation_matrix;
^
RenderingParameters.hpp:130:12: error: no match for 'operator=' (operand types are 'glm::quat {aka glm::tquat<float, (glm::precision)0u>}' and 'glm::mat3x3 {aka glm::tmat3x3<float, (glm::precision)0u>}')
rotation = ortho_params.R; // convert the rotation matrix to a quaternion
4dface.cpp:239:91: error: 'to_matrix' is not a member of 'eos::morphablemodel'
auto merged_shape = morphable_model.get_shape_model().draw_sample(shape_coefficients) + morphablemodel::to_matrix(blendshapes) * Mat(blendshape_coefficients);
^
4dface.cpp:247:215: error: could not convert 'modelview_no_translation' from 'glm::tmat4x4<float, (glm::precision)0u>' to 'cv::Mat'
std::tie(rendering, std::ignore) = render::render(merged_mesh, modelview_no_translation, glm::ortho(-130.0f, 130.0f, -130.0f, 130.0f), 256, 256, render::create_mipmapped_texture(merged_isomap), true, false, false);
^
Can you helm me to figure this out?
Thanks,
from 4dface.
For the last two problems, it looks like you're not using the most recent version of 4dface and eos. Update everything, including all submodules.
For the first two problems, you're probably using an old compiler? You can probably add explicit casts, i.e.: rotation = glm::quat(zxy_rotation_matrix);
to fix it.
from 4dface.
I've added explicit conversions to the quaternion in 6d33d6b, so the first two errors you're getting on your compiler should be gone. I think the intent is clearer this way actually.
from 4dface.
Thanks Patrik. I've tried on latest versions and it worked. And, works very well. Is it possible to save the 3D face as an obj file like .ply or in matlab compatible form to open and modify it later? I've tried keyboard shortcuts, but, it did not work.
Best,
from 4dface.
Cool!
Yes, I think the readme mentions this, pressing "s" or so saves an OBJ. You can also use write_obj(...)
manually wherever you want.
from 4dface.
I can run it on mac and opencv 3.3 works well. But 4dface is so slow while fitting 3dmm model.@patrikhuber do you have any suggestion?
from 4dface.
Related Issues (20)
- Publish pre-built executable HOT 19
- Update travis and AppVeyor configs
- How to implement merged isomap and visualize mesh in Python HOT 1
- dlib landmarks failed under big face angle towards camera HOT 2
- Texture.cpp: use COLOR_BGR2BGRA instead of CV_BGR2BGRA HOT 7
- Could not find Eigen3 with Visual studio 2017 HOT 1
- Possibility of choosing quality versus speed trade-offs to decrease frame processing times? HOT 2
- How to change the shape&expression model in 4dface? HOT 4
- Undefined symbols for architecture x86_64: Mac Sierra + Homebrew HOT 5
- Face-detection performance HOT 6
- would you please provide some detail describes about how to fit 3DMM to frames in an iterative way? Thank you HOT 1
- please help me, thank you HOT 1
- How to retrieve the head pose estimation / Euler angles HOT 5
- error: ‘const class Eigen::ArrayWrapper<const Eigen::Matrix<float, -1, 1> >’ has no member named ‘rsqrt’ HOT 6
- Does 4dface fit only to landmarks or edges as well HOT 1
- No warning, No error, No make... HOT 2
- Make Install Error HOT 3
- error when run 4dface HOT 4
- How to save the obj files HOT 1
- Demo video
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 4dface.