|
|
@@ -1030,9 +1030,7 @@ private:
|
|
|
//计算人脸亮度
|
|
|
//if (m_stFaceConfig.nServersType == 0)
|
|
|
//{
|
|
|
- // m_pHostApi->Debug(FACECAP_DEBUG, "%s:%d eCamera = %d.", __FUNCTION__, __LINE__, eCamera);
|
|
|
// m_stAllFaceInfo.astFaceInfo[0].eBrightness = CalcFaceBrightness(m_pProcessImg,&m_stAllFaceInfo.astFaceInfo[0].stRegion.stFaceRect);
|
|
|
- // m_pHostApi->Debug(FACECAP_DEBUG, "%s:%d m_stAllFaceInfo.astFaceInfo[0].eBrightness = %d.", __FUNCTION__, __LINE__, m_stAllFaceInfo.astFaceInfo[0].eBrightness);
|
|
|
//}
|
|
|
}
|
|
|
//清空存储区
|
|
|
@@ -1656,44 +1654,6 @@ private:
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //void SetUpperbodyToCenter(CameraEnum eCamera)
|
|
|
- //{
|
|
|
- // int nImgWidth,nImgHeight;
|
|
|
- // m_stAllFaceInfo.astFaceInfo[0].eCamera = eCamera;
|
|
|
- // m_pHostApi->Debug(FACECAP_DEBUG, "%s:%d set m_stAllFaceInfo.astFaceInfo[0].eCamera = %d.", __FUNCTION__, __LINE__, eCamera);
|
|
|
- // if (m_stAllFaceInfo.astFaceInfo[0].eCamera == EnvironCamera)
|
|
|
- // {
|
|
|
- // if (m_pEnvironVideoQueue == NULL)
|
|
|
- // {
|
|
|
- // return;
|
|
|
- // }
|
|
|
- // if (m_pEnvironVideoQueue->GetVideoLens()<=0)
|
|
|
- // {
|
|
|
- // m_pHostApi->Debug(FACECAP_DEBUG, "获取环境相机图像队列长度错误!");
|
|
|
- // return;
|
|
|
- // }
|
|
|
- // int size = m_pEnvironVideoQueue->GetFrameSize(nImgWidth,nImgHeight);
|
|
|
- // }
|
|
|
- // else if(m_stAllFaceInfo.astFaceInfo[0].eCamera == OperatorCamera)
|
|
|
- // {
|
|
|
- // if (m_pOperatorVideoQueue == NULL)
|
|
|
- // {
|
|
|
- // return;
|
|
|
- // }
|
|
|
- // if (m_pOperatorVideoQueue->GetVideoLens()<=0)
|
|
|
- // {
|
|
|
- // m_pHostApi->Debug(FACECAP_DEBUG, "获取操作相机图像队列长度错误!");
|
|
|
- // return ;
|
|
|
- // }
|
|
|
- // int size = m_pOperatorVideoQueue->GetFrameSize(nImgWidth,nImgHeight);
|
|
|
- // }
|
|
|
- // m_stAllFaceInfo.astFaceInfo[0].stRegion.stUpperBodyRect.height = nImgHeight/2;
|
|
|
- // m_stAllFaceInfo.astFaceInfo[0].stRegion.stUpperBodyRect.width = nImgWidth/2;
|
|
|
- // m_stAllFaceInfo.astFaceInfo[0].stRegion.stUpperBodyRect.x = nImgWidth/4;
|
|
|
- // m_stAllFaceInfo.astFaceInfo[0].stRegion.stUpperBodyRect.y = nImgHeight/4;
|
|
|
- // WriteAllFaceInfo(m_stAllFaceInfo);
|
|
|
- //}
|
|
|
-
|
|
|
//根据主用户设置人脸剪辑区域
|
|
|
void SetUpperbodyToCenter()
|
|
|
{
|