2016-10-22 10 views

답변

1

특정 지역에서 OCR을 수행하기 위해 Tesseract에 Rectangle 객체를 제공 할 수 있습니다. Tesseract instance = Tesseract.getInstance();

Rectangle rect = new Rectangle(coordinates.getX(), coordinates.getY(), coordinates.getWidth(), coordinates.getHeight()); 
String result = instance.doOCR(bufferedImage, rect); 

결과는 우리에게

희망이 당신에게 도움을

+0

감사합니다 도움이 될 것입니다 사각형 영역에서 인식 문자를 제공하지만 좌표는 모든 이미지에 대해 작동하지 않습니다. 이 작업을 수행하는 다른 방법이 있습니까? – Shilpa