| | |
| | | FaceDetect::Faces FaceDetectServerI::faceDetect(Ice::Int width, Ice::Int height, const std::string &shareMemoryName, |
| | | const Ice::Current &) { |
| | | ClockTimer ct("FaceDetectServerI::faceDetect"); |
| | | INFO("Face Detect"); |
| | | FaceDetect::Faces faces; |
| | | QSharedMemory shareMemory(QString(shareMemoryName.c_str())); |
| | | if (shareMemory.attach()) { |
| | |
| | | |
| | | FaceDetect::ThftResult FaceDetectServerI::faceProperty(Ice::Int width, Ice::Int height, const FaceDetect::FacePos &pos, |
| | | const std::string &shareMemoryName, const Ice::Current &) { |
| | | INFO("faceProperty"); |
| | | QSharedMemory shareMemory(QString(shareMemoryName.c_str())); |
| | | if (shareMemory.attach()) { |
| | | FaceDetect::ThftResult thftResult; |
| | |
| | | } |
| | | return thftResult; |
| | | } else { |
| | | throw std::runtime_error("shareMemory attach faild"); |
| | | ERR("shareMemory error " << shareMemoryName); |
| | | // throw std::runtime_error("shareMemory attach faild"); |
| | | } |
| | | } |