Merge remote-tracking branch 'origin/Develop' into Develop
| | |
| | | delete[] param; |
| | | } |
| | | THFP_Create(threadMax); |
| | | m_ampleSize = |
| | | appPref.getIntData("FaceDetectionSampleSize") > 0 ? appPref.getIntData("FaceDetectionSampleSize") : 640; |
| | | } |
| | | |
| | | FaceDetectServerI::~FaceDetectServerI() { |
| | |
| | | auto data = shareMemory.constData(); |
| | | THFI_FacePos facesPos[30]; |
| | | int channel = detectResourcesManager.getAvilableChannel(shareMemoryName); |
| | | int faceNum = THFI_DetectFace(channel, (BYTE *) data, 24, width, height, facesPos, 30); |
| | | int faceNum = THFI_DetectFace(channel, (BYTE *) data, 24, width, height, facesPos, 30, m_ampleSize); |
| | | if (faceNum > 0) { |
| | | for (int i = 0; i < faceNum; i++) { |
| | | FaceDetect::FacePos face; |
| | |
| | | // FaceDetectServer interface |
| | | public: |
| | | virtual FaceDetect::ThftResult faceProperty(Ice::Int, Ice::Int, const FaceDetect::FacePos &, const std::string &, const Ice::Current &) override; |
| | | |
| | | private: |
| | | int m_ampleSize; |
| | | }; |
| | | |
| | | |
| | |
| | | FaceAngle fAngle; |
| | | int nQuality; |
| | | Data pFacialData; |
| | | long pfaceId; |
| | | long pfaceId; |
| | | } |
| | | |
| | | sequence<FacePos> Faces; |
| | |
| | | { |
| | | "FaceDetectionSampleSize": 720, |
| | | "mainServerIp": "192.168.1.203", |
| | | "mainServerPort": "3697", |
| | | "logPath": "/home/dell/work/log/", |
| | |
| | | "localPasswd": "123456", |
| | | "netIfName": "eno1", |
| | | "srsAddr": "rtmp://192.168.1.122:1934/live/", |
| | | "webPort": 11111 , |
| | | "redis_ip": "127.0.0.1", |
| | | "redis_buf_len" : 750 |
| | | "webPort": 11111, |
| | | "redis_ip": "127.0.0.1", |
| | | "redis_buf_len": 750 |
| | | } |