void swDetect::SWFaceDetection_thread::displayFace(cv::Mat &oRgbImg, cv::Scalar oColor)
{
    cv::Rect faceRect = getLastRect();

    if(faceRect.width > 0)
    {
        if(swUtil::isInside(faceRect, oRgbImg))
        {
            cv::rectangle(oRgbImg, cv::Point(faceRect.x, faceRect.y),
                cv::Point(faceRect.x+faceRect.width, faceRect.y+faceRect.height), oColor,1);
        }
    }
}
Exemplo n.º 2
0
void OSToolBarEntryWndHoster::onParentResize() {
  RECT r = getLastRect();
  if (mywnd)
    mywnd->resize(&r);
}