
390
3
부
애플리케이션
16.3
프로젝트 계획
해결책은 비교적 간단하다. 먼저 데이터를 파일이 아닌 테서랙트로 전달할 수 있는 스크립트를
작성한다. 그런 다음 첫 번째 스크립트를 사용하여 텍스트를 가져오고,
Spark
NLP
를 사용하
여 텍스트를 처리하는 파이썬 스크립트를 작성한다.
16.4
솔루션 구현
테서랙트를 사용하는 사례부터 살펴보자. 이 프로그램의 사용 출력을 살펴보자.
! tesseract -h
Usage:
tesseract --help | --help-extra | --version
tesseract --list-langs
tesseract imagename outputbase [options...] [configfile...]
OCR options:
-l LANG[+LANG] Specify language(s) used for OCR.
NOTE: These options must occur before any configfile.
Single options:
--help Show this help message.
--help-extra Show extra help for advanced users.
--version Show version information.
--list-langs List available languages for tesseract ...