我对Emgu CV很新颖,我绝对测试过大部分代码,例如Hough Lines/Canny Edge检测和Google纸质书,但我仍然不知所措。检测脸部的眉毛[EMGU CV/Open CV/C#]
这是我做了什么
1)检测前脸HaarCascading 2)打破脸的特定区域(以防止少误报和节省CPU功率),以及检测眼睛,鼻子,在指定区域的嘴巴。
我想要做的也是检测眉毛。我找不到眉毛的HaarCascades,我可以在上面添加一个特定区域来扫描眉毛。我已经测试了Hough Lines和Canny Edge,但我无法检测眉毛(它正在检测我脸部的其他部分)。
Gray cannyThreshold = new Gray(255);
Gray cannyThresholdLinking = new Gray(0);
Image<Gray, Byte> gray = grayFrame.Convert<Gray, Byte>().PyrDown().PyrUp();
Image<Gray, Byte> cannyEdges = gray.Canny(cannyThreshold, cannyThresholdLinking);
LineSegment2D[] lines = cannyEdges.HoughLines(
cannyThreshold,
cannyThresholdLinking,
1, //Distance resolution in pixel-related units
Math.PI/45.0, //Angle resolution measured in radians.
1, //threshold
10, //min Line width
3 //gap between lines
)[0]; //Get the lines from the first channel
List<MCvBox2D> boxList = new List<MCvBox2D>();
foreach (LineSegment2D line in lines)
{
frame.Draw(line, new Bgr(Color.Green), 2);
}
我很新的EMGU简历,并在此眉检测工作了几个星期 - 任何人可以请告知我如何能够做到这一点?
将非常感谢任何帮助或建议。 :)