Skip to main content

OCR to read Tibia in-game text written in python

Project description

tibia-ocr

OCR to read Tibia in-game text written in python

Installation

You can install the package via pip:

pip install tibia-ocr

Usage

import cv2

from tibia_ocr.hash_ocr import convert_line

image = cv2.imread("data/test.png")
threshed = cv2.inRange(image, (192, 192, 192), (192, 192, 192))
out = convert_line(threshed)
print(out)

Known Limitations

  • ! is detected as i in big font
  • Can not detect spaces

License

This project is licensed under the terms of the MIT license.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Contact

If you want to contact me you can reach me at pradishbijukchhe@gmail.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tibia-ocr-1.0.8.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

tibia_ocr-1.0.8-py3-none-any.whl (11.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page