Closed itlockit2 closed 4 months ago
Hello,
You'll need to loop through all landmarks (x
and y
values) and apply scale to them.
At this moment I can't help you with some code because landmarks are not something I use in my own projects.
However, I can provide you this assistance with a financial compensation. If you're willing to consider this option, I'm here to help in the best way I can.
I'll close this issue as it's not realated to any issue nor a problem but you can still reply it to continue this conversation.
Firstly, I would like to express my appreciation for the excellent library; it has been instrumental in my project. I have successfully used the example code provided to render bounding boxes for detected faces within my application. However, I am encountering difficulties when trying to render facial landmarks on the screen.
I am using the calcFacePosition function to calculate the positions of the bounding boxes based on the face detection output. This part works as expected. However, when attempting to apply similar logic to render facial landmarks, I am unsure how to correctly adjust the coordinates to fit the orientation and scale of the display.
Here is the function I use to calculate the face position:
I would appreciate guidance on how to modify this function or apply a different method to accurately position facial landmarks on the screen, taking into account different device orientations and scales.
Thank you for your time and assistance.