适用于其他面部表情的iOS OpenCV闹剧 [英] iOS OpenCV haarcascade for other facial emotions

查看:103
本文介绍了适用于其他面部表情的iOS OpenCV闹剧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试OpenCV iOS示例来实现面部表情识别. 我从下面的链接获得了OpenCV示例iOS项目"openCViOSFaceTrackingTutorial". https://github.com/egeorgiou/openCViOSFaceTrackingTutorial/tree/master/openCViOSFaceTrackingTutorial

I have been trying OpenCV iOS sample to achieve facial emotion recognition. I got OpenCV sample iOS project 'openCViOSFaceTrackingTutorial' from below link. https://github.com/egeorgiou/openCViOSFaceTrackingTutorial/tree/master/openCViOSFaceTrackingTutorial

此示例项目使用人脸检测",效果很好.它使用经过训练的"haarcascade_frontalface_alt2.xml"模型.

This sample project uses 'face detection', it works fine. It uses 'haarcascade_frontalface_alt2.xml' trained model.

我想使用同一个项目,但是对于其他诸如悲伤",惊喜"之类的面部表情有强烈的反应.我一直在寻找如何训练悲伤"的情绪,例如悲伤",惊喜"等,但找不到任何线索.

I want to use the same project but have haarcascade for other facial emotions like Sad, Surprise. I have been searching for how to train haarcascade for emotions like Sad, Surprise etc. but couldn't find any clue.

有人可以建议我,如何训练类似悲伤",惊喜"等情感的水平运动,以供本示例OpenCV iOS项目中使用?还是会有可用于悲伤,惊奇等情绪的现成的闹剧用于此iOS示例.

Could someone advise me, how to train haarcascade for emotions like Sad, Surprise etc. to use in this sample OpenCV iOS project? Or will there be readymade haarcascade for emotions like Sad, Surprise etc. to use for this iOS sample.

谢谢

推荐答案

,您可以阅读

you can read tutorial on how to generate haarcascade file, but generating haarcascade for emotions is not easy task.

我建议从脸部提取嘴巴和眼睛,并使用级联并处理这些矩形以检测情绪.您可以从此处获取口口相传的gaarcascade.口和眼是复杂的功能,因此,如果您尝试在整个图像中找到它,将无法正常工作,因此,首先找到正面,然后尝试仅在脸部矩形内检测到嘴和眼.

I would suggest to extract Mouth and eye from face and using haarcascade and process these rectangles for detecting emotions. you can get gaarcascade for mouth and eye from here . Mouth and Eye are complicated feature so will not work if you will try to find it in whole image, so first find the front face and try to detect mouth and eye within face rectangle only.

github 上有可用的开源库情感检测,尽管这些不适用于ios,但您可以使用类似的算法在ios中实现.

There are open source library available on github for emotion detaction, though these are not for ios, you can use similar algorithm to implement in ios.

这篇关于适用于其他面部表情的iOS OpenCV闹剧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆