anuashok / ocr-captcha-v3

huggingface.co
Total runs: 80.2K
24-hour runs: -3.4K
7-day runs: -14.9K
30-day runs: -5.0K
Model's Last Updated: November 15 2024

Introduction of ocr-captcha-v3

Model Details of ocr-captcha-v3

anuashok/ocr-captcha-v3

This model is a fine-tuned version of microsoft/trocr-base-printed on Captchas of the type shown below

image/png

image/png

Training Summary
  • CER (Character Error Rate) : 0.01394585726004922
  • Hyperparameters :
    • Learning Rate : 1.5078922700531405e-05
    • Batch Size : 16
    • Num Epochs : 7
    • Warmup Ratio : 0.14813004670666596
    • Weight Decay : 0.017176551931326833
    • Num Beams : 2
    • Length Penalty : 1.3612823161368288
Usage
from transformers import VisionEncoderDecoderModel, TrOCRProcessor
import torch
from PIL import Image

# Load model and processor
processor = TrOCRProcessor.from_pretrained("anuashok/ocr-captcha-v3")
model = VisionEncoderDecoderModel.from_pretrained("anuashok/ocr-captcha-v3")

# Load image
image = Image.open('path_to_your_image.jpg').convert("RGB")
# Load and preprocess image for display
image = Image.open(image_path).convert("RGBA")
# Create white background
background = Image.new("RGBA", image.size, (255, 255, 255))
combined = Image.alpha_composite(background, image).convert("RGB")

# Prepare image
pixel_values = processor(combined, return_tensors="pt").pixel_values

# Generate text
generated_ids = model.generate(pixel_values)
generated_text = processor.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(generated_text)

Runs of anuashok ocr-captcha-v3 on huggingface.co

80.2K
Total runs
-3.4K
24-hour runs
-7.9K
3-day runs
-14.9K
7-day runs
-5.0K
30-day runs

More Information About ocr-captcha-v3 huggingface.co Model

More ocr-captcha-v3 license Visit here:

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

ocr-captcha-v3 huggingface.co

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

ocr-captcha-v3 huggingface.co Url

https://huggingface.co/anuashok/ocr-captcha-v3

anuashok ocr-captcha-v3 online free

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

anuashok ocr-captcha-v3 online free url in huggingface.co:

https://huggingface.co/anuashok/ocr-captcha-v3

ocr-captcha-v3 install

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

ocr-captcha-v3 install url in huggingface.co:

https://huggingface.co/anuashok/ocr-captcha-v3

Url of ocr-captcha-v3

ocr-captcha-v3 huggingface.co Url

Provider of ocr-captcha-v3 huggingface.co

anuashok
ORGANIZATIONS

Other API from anuashok

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:November 06 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:November 14 2024