mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-28 03:46:06 -05:00 
			
		
		
		
	Make OCR_LANGUAGE configurable (Fix #176)
This commit is contained in:
		| @@ -108,3 +108,7 @@ PAPERLESS_SHARED_SECRET="" | ||||
| # Customize number of list items to show per page | ||||
| #PAPERLESS_LIST_PER_PAGE=50 | ||||
|  | ||||
| # Customize the default language that tesseract will attempt to use when parsing | ||||
| # documents.  It should be a 3-letter language code consistent with ISO 639. | ||||
| #PAPERLESS_OCR_LANGUAGE=eng | ||||
|  | ||||
|   | ||||
| @@ -204,7 +204,7 @@ LOGGING = { | ||||
|  | ||||
| # The default language that tesseract will attempt to use when parsing | ||||
| # documents.  It should be a 3-letter language code consistent with ISO 639. | ||||
| OCR_LANGUAGE = "eng" | ||||
| OCR_LANGUAGE = os.getenv("PAPERLESS_OCR_LANGUAGE", "eng") | ||||
|  | ||||
| # The amount of threads to use for OCR | ||||
| OCR_THREADS = os.getenv("PAPERLESS_OCR_THREADS") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Eric Wong
					Eric Wong