Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在图像上创建一个图层并调整图层以适合图像并获取图层的坐标。
我需要通过触摸和捏合来调整图层。
示例图像如下。我需要在 ios 中执行此操作,我可以得到任何想法吗?
使用 coreImage 的人脸检测 API 检测人脸的边界,以及左眼、右眼和嘴巴的 CGPoint。如图所示,使用贝塞尔路径针对每个面部特征绘制一条紫色线路径。
如果您想更精确,最好使用 openCV 来检测每个面部特征的边缘。