简体   繁体   English

用于面部表情的 haar 级联分类器训练的负图像

[英]Negative images for haar cascade classifier training for facial expressions

I'm trying to create my own cascade classifiers to detect facial expressions in images using OpenCV.我正在尝试创建自己的级联分类器来使用 OpenCV 检测图像中的面部表情。 I know that I need to collect both positive and negative images, where the positives contain the object to be detected, and the negatives do not.我知道我需要收集正片和负片图像,其中正片包含要检测的对象,而负片不包含。 In face detection, the negatives are images where there are no faces.在人脸检测中,底片是没有人脸的图像。 In order to create a cascade classifier for a certain facial expression, should the negatives be people with neutral expressions, or just images without faces in them?为了为某个面部表情创建级联分类器,底片应该是具有中性表情的人,还是只是没有面部的图像?

The goal is to detect a few expressions (neutral, smiling/laughter, excitement, bored/sad).目标是检测一些表情(中性、微笑/大笑、兴奋、无聊/悲伤)。

"I'm trying to create my own cascade classifiers to detect facial expressions" “我正在尝试创建自己的级联分类器来检测面部表情”

that probably won't work.那可能行不通。 you'd have to train one cascade per expression, and they are just not different enough for this.您必须为每个表达式训练一个级联,而它们的差异还不够大。

instead, try to train a FisherFaceRecognizer on your expressions in a similar manner to this相反,尝试以与此类似的方式在您的表情上训练 FisherFaceRecognizer

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM