Skip to content

yunwoong7/korean_ocr_using_pororo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Korean OCR using pororo

This is a Korean OCR Python code using the Pororo library.

Requirements

  • torch
  • torchvision
  • opencv-python

You can install it from PyPI:

pip install torch
pip install torchvision
pip install opencv-python

PORORO: Platform Of neuRal mOdels for natuRal language prOcessing

pororo is a library developed by KakaoBrain for performing natural language processing and speech-related tasks.

This repository is configured to only include the OCR functionality from the pororo library. If you wish to use other pororo features such as natural language processing, please install pororo through pip install pororo.

Usage

from pororo import Pororo

ocr = PororoOcr()
image_path = input("Enter image path: ")
text = ocr.run_ocr(image_path, debug=True)
print('Result :', text)

Output:

['메이크업존 MAKEUP ZONE', '드레스 피팅룸 DRESS FITTING ROOM', '포토존 PHOTO ZONE']

["Life is ot a spectator sport. If you're going to spend your whole life in the grandstand just watching what goes on, in my apinion you're wasting your life.",
 "인생은 구경거리가 아니다. 무슨 일이 일어나는지 보기만 하는 것은 인생을 낭비하고 있는 것이다.",
 'Jackie Robinson']

Releases

No releases published

Packages

No packages published