21 lines
587 B
Java
21 lines
587 B
Java
|
|
package it.acxent.face.callable;
|
||
|
|
|
||
|
|
import it.acxent.db.ResParm;
|
||
|
|
import it.acxent.face.FaceRecognizer;
|
||
|
|
import it.acxent.face.FotoFace;
|
||
|
|
import java.util.concurrent.Callable;
|
||
|
|
|
||
|
|
public class FotoFaceRecognizerByModelCallable implements Callable<ResParm> {
|
||
|
|
private FotoFace row;
|
||
|
|
|
||
|
|
private FaceRecognizer faceRecognizer;
|
||
|
|
|
||
|
|
public FotoFaceRecognizerByModelCallable(FotoFace row, FaceRecognizer faceRecognizer) {
|
||
|
|
this.row = row;
|
||
|
|
this.faceRecognizer = faceRecognizer;
|
||
|
|
}
|
||
|
|
|
||
|
|
public ResParm call() throws Exception {
|
||
|
|
return this.row.recognize(this.faceRecognizer, true);
|
||
|
|
}
|
||
|
|
}
|