Douglas Souza

Results 28 comments of Douglas Souza

@mwlodarczyk, To be honest, I haven't worked on this project lately. Regarding the issue: I think the problem may be related to size of the 3D model and the reference...

@braca51e, this constant is used to choose whether to apply soft symmetry or not (hard frontalization is performed anyway). Line 94-95 and 97-98 are used just to clip pixels outside...

@braca51e, yes, you are correct. Clipping should performed in both cases, the clipping lines should be placed after if-else statement and before returning both images. A nice way to do...

@Codermay, Sorry for late reply. Well, this code is a port from the original MATLAB code, if you want to understand better how it works and how to change it,...

Hi @haridatascientist As you posted, the line that is throwing the error is: `denominator = weights + weight_take_from_org + weight_take_from_sym` This is a simple Numpy matrix addition which shouldn't be...

Hi @Justidan, Well, it may happen. This code has a limit for face position it can frontalize. What I can suggest is that you plot the landmarks detected in your...

That's really weird. Let me run some tests to see what is going on.

I have tested on your photo and it worked as expected. Which version of OpenCV are you using? Maybe there is some issue when calculating the camera matrix. ![figure_2](https://cloud.githubusercontent.com/assets/16470848/15297572/3b742e26-1b71-11e6-9c87-78d2be17cec6.png) ![figure_4](https://cloud.githubusercontent.com/assets/16470848/15297580/3fbf869c-1b71-11e6-965e-3070e5664574.png)

Maybe it is. Dlib 18.18 is known to work, but to be honest, I haven't tested on OpenCV 3.1, only on 2.4 and 3.0.

@Justidan, I experienced an issue similar to yours. It happened because the face was small compared to the image size. I still don't know why this happens, hope to investigate...