EnoxSoftware / FaceMaskExample

This asset is an example project that maps face mask to the detected faces in an image using “OpenCV for Unity” and “Dlib FaceLandmark Detector”.

Home Page:https://assetstore.unity.com/packages/templates/tutorials/facemask-example-79999

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webcam texture rotation

gonzam88 opened this issue · comments

Hi, i'm trying to use a webcam as a vertical image, but when physically rotated, the face is no longer detected. I assume this is because the landmarks are no longer found in the place they are expected to be.
What steps should I follow to internally rotate the webcam image before the face tracker tracks the webcam texture?
thanks in advance

Silly me. Will leave this here in case someone else runs into this.
After
webCamTextureToMatHelper.initialize();
add
webCamTextureToMatHelper.rotate90Degree = true;