Skip to main content

Python package to convert Arabic images to text by OCR technique detection

Project description

ArabicOcr Package to convert any Arabic image text to text by ocr techniques

about

Python Package to convert arabic images to text

Installation

pip install ArabicOcr
or in colab google cloud
!pip install ArabicOcr

Usage for get frames images

from ArabicOcr import arabicocr
image_path='1.jpg'
out_image='out.jpg'
results=arabicocr.arabic_ocr(image_path,out_image)
print(results)
words=[]
for i in range(len(results)):	
		word=results[i][1]
		words.append(word)
with open ('file.txt','w',encoding='utf-8')as myfile:
		myfile.write(str(words))
import cv2
img = cv2.imread('out.jpg', cv2.IMREAD_UNCHANGED)
cv2.imshow("arabic ocr",img)
cv2.waitKey(0)

Tutorial

u can see tutorial in colab

https://colab.research.google.com/drive/1ay5KT9Za340_kN7fhS2xuJX8suCigaF6?usp=sharing

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

ArabicOcr-1.1.6.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

ArabicOcr-1.1.6-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file ArabicOcr-1.1.6.tar.gz.

File metadata

  • Download URL: ArabicOcr-1.1.6.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0

File hashes

Hashes for ArabicOcr-1.1.6.tar.gz
Algorithm Hash digest
SHA256 80306265d869c94c942b4d69ac48aeb754b20436e2eb659739f80cb6e6979b47
MD5 2a4e4641eb2654af7df4df2dc317661f
BLAKE2b-256 b201794501bd1c5903540763225b142f1a6b94cccd3583cb776c7324b4a952f4

See more details on using hashes here.

File details

Details for the file ArabicOcr-1.1.6-py3-none-any.whl.

File metadata

  • Download URL: ArabicOcr-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0

File hashes

Hashes for ArabicOcr-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e283e7aa30e28b3f162c05541d39bcf865fab87b87eaa6ab910842dc8b844c16
MD5 f6c161b731d9a8f03034c7649579b648
BLAKE2b-256 8ab7cbc39f0d7893cd58d06cfa09f8dc675d9c2c62087ebd80c4f57c5a25dad7

See more details on using hashes here.

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