| 
						
						
							
								
							
						
						
					 | 
					@ -34,11 +34,12 @@ public class PlateController extends PlateControllerImpl { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @ApiOperation(value = "根据图片名称车牌识别") | 
					 | 
					 | 
					    @ApiOperation(value = "根据图片名称车牌识别") | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @RequestMapping(value = "getByImageName", method = RequestMethod.GET) | 
					 | 
					 | 
					    @RequestMapping(value = "getByImageName", method = RequestMethod.GET) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    public ResponseInfo<List<PlateInfoRepVo>> imagesToBase64(@RequestParam String imageName){ | 
					 | 
					 | 
					    public ResponseInfo<List<PlateInfoRepVo>> imagesToBase64(@RequestParam String imageName){ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        String property = System.getProperty("user.dir") + "\\images\\"; | 
					 | 
					 | 
					        String property = System.getProperty("user.dir") ; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        String filePath = property + targetPath + imageName; | 
					 | 
					 | 
					        String filePath = property + targetPath + imageName; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        String imageBaseCode = ImageUtil.convertImageToBase64Str(filePath); | 
					 | 
					 | 
					        String imageBaseCode = ImageUtil.convertImageToBase64Str(filePath); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        PlateInfoReqVo plateInfoReq = new PlateInfoReqVo(); | 
					 | 
					 | 
					        PlateInfoReqVo plateInfoReq = new PlateInfoReqVo(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        plateInfoReq.setImage(imageBaseCode); | 
					 | 
					 | 
					        plateInfoReq.setImage(imageBaseCode); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        return recognition(plateInfoReq); | 
					 | 
					 | 
					        return recognition(plateInfoReq); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -46,7 +47,7 @@ public class PlateController extends PlateControllerImpl { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    /** | 
					 | 
					 | 
					    /** | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     * 抓拍实况中的车牌并识别 (可同时识别,默认最多5张车牌) | 
					 | 
					 | 
					     * 抓拍实况中的车牌并识别 (可同时识别,默认最多5张车牌) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					     * @param CameraIP   ffmpeg所需的摄像头IP地址 | 
					 | 
					 | 
					     * @param CameraIP   ffmpeg所需要的输入流 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					     * @return           返回识别结果 | 
					 | 
					 | 
					     * @return           返回识别结果 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     */ | 
					 | 
					 | 
					     */ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @ApiOperation(value = "抓拍实况中的车牌并识别") | 
					 | 
					 | 
					    @ApiOperation(value = "抓拍实况中的车牌并识别") | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -55,6 +56,9 @@ public class PlateController extends PlateControllerImpl { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        // 获取当前项目路径
 | 
					 | 
					 | 
					        // 获取当前项目路径
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        String property = System.getProperty("user.dir"); | 
					 | 
					 | 
					        String property = System.getProperty("user.dir"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        String imageName = FfmpegUtil.getLiveCapture(CameraIP, property + targetPath); | 
					 | 
					 | 
					        String imageName = FfmpegUtil.getLiveCapture(CameraIP, property + targetPath); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        if ("error".equals(imageName)){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            return ResponseInfo.error("抓拍失败"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        return imagesToBase64(imageName); | 
					 | 
					 | 
					        return imagesToBase64(imageName); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |