ddobokki / ko-trocr

huggingface.co
Total runs: 1.4K
24-hour runs: 18
7-day runs: -180
30-day runs: -208
Model's Last Updated: October 22 2024
image-to-text

Introduction of ko-trocr

Model Details of ko-trocr

korean trocr model

train datasets

AI Hub

model structure
how to use
from transformers import TrOCRProcessor, VisionEncoderDecoderModel, AutoTokenizer
import requests 
import unicodedata
from io import BytesIO
from PIL import Image

processor = TrOCRProcessor.from_pretrained("ddobokki/ko-trocr") 
model = VisionEncoderDecoderModel.from_pretrained("ddobokki/ko-trocr")
tokenizer = AutoTokenizer.from_pretrained("ddobokki/ko-trocr")

url = "https://raw.githubusercontent.com/ddobokki/ocr_img_example/master/g.jpg"
response = requests.get(url)
img = Image.open(BytesIO(response.content))

pixel_values = processor(img, return_tensors="pt").pixel_values 
generated_ids = model.generate(pixel_values, max_length=64)
generated_text = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
generated_text = unicodedata.normalize("NFC", generated_text)
print(generated_text)

Runs of ddobokki ko-trocr on huggingface.co

1.4K
Total runs
18
24-hour runs
-148
3-day runs
-180
7-day runs
-208
30-day runs

More Information About ko-trocr huggingface.co Model

More ko-trocr license Visit here:

https://choosealicense.com/licenses/apache-2.0

ko-trocr huggingface.co

ko-trocr huggingface.co is an AI model on huggingface.co that provides ko-trocr's model effect (), which can be used instantly with this ddobokki ko-trocr model. huggingface.co supports a free trial of the ko-trocr model, and also provides paid use of the ko-trocr. Support call ko-trocr model through api, including Node.js, Python, http.

ddobokki ko-trocr online free

ko-trocr huggingface.co is an online trial and call api platform, which integrates ko-trocr's modeling effects, including api services, and provides a free online trial of ko-trocr, you can try ko-trocr online for free by clicking the link below.

ddobokki ko-trocr online free url in huggingface.co:

https://huggingface.co/ddobokki/ko-trocr

ko-trocr install

ko-trocr is an open source model from GitHub that offers a free installation service, and any user can find ko-trocr on GitHub to install. At the same time, huggingface.co provides the effect of ko-trocr install, users can directly use ko-trocr installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

ko-trocr install url in huggingface.co:

https://huggingface.co/ddobokki/ko-trocr

Url of ko-trocr

ko-trocr huggingface.co Url

Provider of ko-trocr huggingface.co

ddobokki
ORGANIZATIONS

Other API from ddobokki

huggingface.co

Total runs: 28
Run Growth: 0
Growth Rate: 0.00%
Updated:August 31 2023