| | |
| | | rule.second.strAddr = item.str_addr; |
| | | rule.second.weekRuleVec = m_lDBTool->searchCameraWeekRuleByCamId(item.str_cam_dev_id, rule.first); |
| | | |
| | | if(rule.second.nSdkType == FaceSdk) continue; |
| | | if(rule.second.nSdkType == PerStaticSdk) |
| | | { |
| | | float temp=1-(float)(rule.second.nThreshold)/100; |
| | | rule.second.fSensitivity=(75+25*temp)/100; |
| | | |
| | | if (rule.second.nThreshold < 5 ) |
| | | { |
| | | rule.second.fSensitivity=0.95; |
| | | } |
| | | else if(rule.second.nThreshold > 95) |
| | | else if(rule.second.nSdkType != FaceSdk) |
| | | { |
| | | rule.second.fSensitivity=0.05; |
| | | float temp=1-(float)(rule.second.nThreshold)/100; |
| | | rule.second.fSensitivity=(5+90*temp)/100; |
| | | } |
| | | else |
| | | { |
| | | rule.second.fSensitivity = 1-(float) (rule.second.nThreshold) / 100; |
| | | } |
| | | // if (rule.second.nThreshold < 5 ) |
| | | // { |
| | | // rule.second.fSensitivity=0.95; |
| | | // } |
| | | // else if(rule.second.nThreshold > 95) |
| | | // { |
| | | // rule.second.fSensitivity=0.05; |
| | | // } |
| | | // else |
| | | // { |
| | | // rule.second.fSensitivity = 1-(float) (rule.second.nThreshold) / 100; |
| | | // } |
| | | |
| | | DBG("fSensitivity" << rule.second.fSensitivity); |
| | | } |