I am developing a winForm c# program for smile detection with a webcam by using EmguCV library. I use some haarcascade_smile xml file to do it successfully. However, a detection error occures in some cases: Sometimes the mouth shape line is wrongly identified as the mouth.
I have a new idea, which is to look for the color red in addition to the original xml file to improve mouth detection, and attempt to reduce the error rate.
Does anyone know of a command or library that can be used to detect red color ?
Many thanks :)
var smiles = grayframe.DetectHaarCascade(_smiles,
ScaleIncreaseRate,
MinNeighbors,
HAAR_DETECTION_TYPE.DO_CANNY_PRUNING,
new Size(WindowsSize, WindowsSize))[0];
if (smiles.Length == 0)
{
// Number of smile face detected is 0
}
else
{
}