【发布时间】:2017-04-14 16:40:38
【问题描述】:
我想知道如何在opencv中获取以像素为单位的眼睛坐标(左眼和右眼)我正在使用这个tutorial
我想获取坐标并打印出来。这是获取眼睛位置的部分:
for( size_t j = 0; j < eyes.size(); j++ )
{
Point center( faces[i].x + eyes[j].x + eyes[j].width*0.5, faces[i].y + eyes[j].y + eyes[j].height*0.5 );
int radius = cvRound( (eyes[j].width + eyes[j].height)*0.25 );
circle( image, center, radius, Scalar( 255, 0, 0 ), 4, 8, 0 );
}
【问题讨论】: