| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -11,8 +11,8 @@ import java.util.List; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					public class TorchPlateDetectionTest { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public static void main(String[] args) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        TorchPlateDetection torchPlateDetection = new TorchPlateDetection("open-anpr-core/src/main/resources/models/plate_detect.onnx", 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					//        String imagePath = "/Users/diven/workspace/idea/gitee/open-anpr/open-anpr-core/src/test/resources/images/image003.jpg";
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        String imagePath = "/Users/diven/workspace/pycharm/github/Chinese_license_plate_detection_recognition/imgs3/double_yellow.jpg"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        String imagePath = "open-anpr-core/src/test/resources/images"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        ImageMat imageMat = ImageMat.fromImage(imagePath); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        List<PlateInfo> plateInfos = torchPlateDetection.inference(imageMat, 0.3f,0.5f, new HashMap<>()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        System.out.println(plateInfos); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |