카테고리 없음

[자바] 이미지에서 숫자를 읽는 방법?

행복을전해요 2020. 12. 23. 12:47

광학 문자 인식 (OCR)이라고합니다. 도움이 될 수있는 몇 가지 클래스 및 라이브러리를 참조하십시오 .

깜짝

추상적 인

jocr

tess4j

-------------------

tess4j 이 시도해 볼 수도 있습니다 :

public static void main(final String[] args) throws Exception {
    final File imageFile = new File("imageWith Digits.jpg");
        final ITesseract instance = new Tesseract();
            instance.setTessVariable("tessedit_char_whitelist", "0123456789");
                final String result = instance.doOCR(imageFile);
                    System.out.println(result);
                    }
                    


출처
https://stackoverflow.com/questions/7420166