|
@@ -99,9 +99,12 @@ public class FaceTest {
|
|
|
|
|
|
public static RecogResult watchFrame(FaceMonitor faceMonitor, String dataPath) {
|
|
public static RecogResult watchFrame(FaceMonitor faceMonitor, String dataPath) {
|
|
Image image = faceMonitor.readImage(dataPath);
|
|
Image image = faceMonitor.readImage(dataPath);
|
|
- return faceMonitor.faceRecogMonitor(image);
|
|
|
|
|
|
+ RecogInfo recogInfo = new RecogInfo();
|
|
|
|
+ recogInfo.setCameraId(0);//摄像头id
|
|
|
|
+ recogInfo.setFrameId(1);//帧号
|
|
|
|
+ recogInfo.setMillisec(faceMonitor.getTimeMillisec());//这个是当前服务器时间,不传也没事,主要是上边两个
|
|
|
|
+ return faceMonitor.faceRecogMonitor(image, recogInfo);
|
|
}
|
|
}
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* read file
|
|
* read file
|
|
*
|
|
*
|