| 
					
				 | 
			
			
				@@ -97,7 +97,9 @@ public class FaceIdenTool { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (faceMonitor == null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        FaceRecogRetrieveResult faceRecogRetrieveResult = faceMonitor.faceRecogRetrieveFaceDataset(faceModel); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //topN建议使用10,传入范围(根据底库大小) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        int topN = 2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        FaceRecogRetrieveResult faceRecogRetrieveResult = faceMonitor.faceRecogRetrieveFaceDataset(faceModel,topN); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if(faceRecogRetrieveResult != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             int index = faceRecogRetrieveResult.getOnePredictIds()[0]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             float score = faceRecogRetrieveResult.getOnePredictScores()[0]; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -137,19 +139,19 @@ public class FaceIdenTool { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     * 使用dataPath的图片去库里查找,返回命中结果 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     * @param idenRoot 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     * @param dataPath 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static RecogResult watchFrame(String idenRoot,  String dataPath) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //初始化引擎 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        FaceMonitor faceMonitor = new FaceMonitor(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        faceMonitor.init(idenRoot + "face/model", 0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Image image = faceMonitor.readImage(dataPath); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return faceMonitor.faceRecogMonitor(image); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     * 使用dataPath的图片去库里查找,返回命中结果 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     * @param idenRoot 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     * @param dataPath 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//    public static RecogResult watchFrame(String idenRoot,  String dataPath) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        //初始化引擎 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        FaceMonitor faceMonitor = new FaceMonitor(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        faceMonitor.init(idenRoot + "face/model", 0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        Image image = faceMonitor.readImage(dataPath); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        return faceMonitor.faceRecogMonitor(image); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //释放人脸引擎 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static void releaseEngine(FaceMonitor faceMonitor) { 
			 |