init
This commit is contained in:
		
							parent
							
								
									98d7406a99
								
							
						
					
					
						commit
						a7dd7fa0ba
					
				@ -38,7 +38,7 @@ public class OCRProcessor {
 | 
			
		||||
            // 设置Tesseract数据路径
 | 
			
		||||
            String tessdataPath = System.getenv("TESSDATA_PREFIX");
 | 
			
		||||
            if (tessdataPath == null || tessdataPath.isEmpty()) {
 | 
			
		||||
                tessdataPath ="D:\\study\\backend\\embeddingstoes-master\\src\\main\\resources\\ocr";
 | 
			
		||||
                tessdataPath ="D:\\study\\backend\\luckday-knows-demo\\konws-java\\src\\main\\resources\\ocr";
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            tesseract.setDatapath(tessdataPath);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user