There are extreme points of the face, it is turned (not in full face), point by point you can find the face axis ox oy. It is necessary to transform the points so that they are in a position as if the face is in full face (ox and oy are perpendicular) How to do this? I assume that using perspectiveTransform, and yet I need advice
1 answer
To build a perspective transformation matrix, you need to know the coordinates of four non-collinear points on the distorted image, and the coordinates of the corresponding points on the plane. An example when it is easy to correlate:
Such data are available?
In addition, please note that the three-dimensionality of the face will introduce its own errors.
- I will try to write them myself, there is data on the size of the face, so before the final image I will register points, assuming that the axis of the debts is perpendicular - Arseny Protsenko
- OK, I didn’t go broke with these 4 dots. I do not know the length and width of the face, do you know any way to solve this problem? - Arseny Protsenko
|
