Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

106关键点如何实现旋转View后,还可以吻合呢? #25

Closed
ETmanwenhan opened this issue May 19, 2020 · 1 comment
Closed

Comments

@ETmanwenhan
Copy link

CGAffineTransform t = CGAffineTransformRotate(CGAffineTransformIdentity, M_PI_4);
self.detectView.transform = t;

106关键点就对不上了。要求先设置transform,然后绘制关键点。急,求解答,谢谢!

@suancaiyu
Copy link
Collaborator

CGAffineTransform t = CGAffineTransformRotate(CGAffineTransformIdentity, M_PI_4);
self.detectView.transform = t;

106关键点就对不上了。要求先设置transform,然后绘制关键点。急,求解答,谢谢!

这个其实很简单,你把view旋转了,那对应的点位也角度变换下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants