| | |
| | | #include <THFaceProperty_i.h> |
| | | |
| | | FaceDetectServerI::FaceDetectServerI() { |
| | | long threadMax = appPref.getLongData("thread.max"); |
| | | long gpuIndex = appPref.getLongData("gpu.index"); |
| | | long threadMax = appPref.getIntData("thread.max"); |
| | | long gpuIndex = appPref.getIntData("gpu.index"); |
| | | for (int i = 0; i < threadMax; i++) { |
| | | detectResourcesManager.pushResource(i); |
| | | } |
| | |
| | | } |
| | | return thftResult; |
| | | } else { |
| | | throw std::runtime_error("shareMemory attach faild"); |
| | | ERR("shareMemory error " << shareMemoryName); |
| | | // throw std::runtime_error("shareMemory attach faild"); |
| | | } |
| | | } |