|
@@ -32,7 +32,8 @@ public class FaceApiParam implements Serializable {
|
|
private boolean useLocalBaiduApiForFaceLiveness = true;
|
|
private boolean useLocalBaiduApiForFaceLiveness = true;
|
|
|
|
|
|
public int getMaxThreadNum() {
|
|
public int getMaxThreadNum() {
|
|
- return maxThreadNum;
|
|
|
|
|
|
+ // 最大数不超过20
|
|
|
|
+ return Math.min(maxThreadNum, 20);
|
|
}
|
|
}
|
|
|
|
|
|
public void setMaxThreadNum(int maxThreadNum) {
|
|
public void setMaxThreadNum(int maxThreadNum) {
|