navaneeth-sharma / akshara-jaana Goto Github PK
View Code? Open in Web Editor NEWA OCR Project for Reading New and Old Kannada Texts
A OCR Project for Reading New and Old Kannada Texts
To improve the accuracy of the overall pipeline, it is better to add a spell correction Large Language model. Use Opensource models like Mistral, LLama, Falcon and others
pip install easyocr
import easyocr
img_path = "/content/test_image.jpeg"
reader = easyocr.Reader(['kn','en'])
result = reader.readtext(img_path, paragraph=True)
To Reproduce
Steps to reproduce the behavior:
from AksharJaana.main import ocr_engine
ocr_engine('path.pdf')
Expected behavior
The below error is occurring while reading the pdf
Desktop (please complete the following information):
Currently only tesseract model is present, which is not that efficient for old Kannada scripts (printed), So implement the OCR in paddleocr
. No Extra Installation Required
pip install paddleocr paddlepaddle
import cv2
from paddleocr import PaddleOCR, draw_ocr
# Creating OCR object
ocr = PaddleOCR(lang="ka")
# Reading image
img_path = "/content/test_image.jpeg"
img = cv2.imread(img_path)
# Running OCR
result = ocr.ocr(img)
# Printing results
for line in result:
print(line)
boxes = [line[0] for line in result] # the box locations in the image (just like cv2)
txts = [line[1][0] for line in result] # the extracted text
scores = [line[1][1] for line in result] # confidence score
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.