Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
O
OcrForArabicRecherche
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AYOUB ABOUNAMER
OcrForArabicRecherche
Commits
b0f108d7
Commit
b0f108d7
authored
Apr 18, 2022
by
AYOUB ABOUNAMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete easyocr__1_.ipynb
parent
e1b3f428
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
643 deletions
+0
-643
easyocr__1_.ipynb
easyocr__1_.ipynb
+0
-643
No files found.
easyocr__1_.ipynb
deleted
100644 → 0
View file @
e1b3f428
{
"cells": [
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "DMW8cj97bGHw",
"outputId": "223e7094-5463-4980-b8e1-bdb255ad95b3"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: torch in /usr/local/lib/python3.7/dist-packages (1.10.0+cu111)\n",
"Requirement already satisfied: torchvision in /usr/local/lib/python3.7/dist-packages (0.11.1+cu111)\n",
"Requirement already satisfied: torchaudio in /usr/local/lib/python3.7/dist-packages (0.10.0+cu111)\n",
"Requirement already satisfied: typing-extensions in /usr/local/lib/python3.7/dist-packages (from torch) (3.10.0.2)\n",
"Requirement already satisfied: pillow!=8.3.0,>=5.3.0 in /usr/local/lib/python3.7/dist-packages (from torchvision) (7.1.2)\n",
"Requirement already satisfied: numpy in /usr/local/lib/python3.7/dist-packages (from torchvision) (1.21.5)\n"
]
}
],
"source": [
"!pip install torch torchvision torchaudio"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "SYLIvvnabV5S",
"outputId": "c872f076-a59b-46b0-b6c9-3940faef7e1b"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: easyocr in /usr/local/lib/python3.7/dist-packages (1.4.2)\n",
"Requirement already satisfied: torchvision>=0.5 in /usr/local/lib/python3.7/dist-packages (from easyocr) (0.11.1+cu111)\n",
"Requirement already satisfied: scipy in /usr/local/lib/python3.7/dist-packages (from easyocr) (1.4.1)\n",
"Requirement already satisfied: opencv-python-headless<=4.5.4.60 in /usr/local/lib/python3.7/dist-packages (from easyocr) (4.5.4.60)\n",
"Requirement already satisfied: numpy in /usr/local/lib/python3.7/dist-packages (from easyocr) (1.21.5)\n",
"Requirement already satisfied: scikit-image in /usr/local/lib/python3.7/dist-packages (from easyocr) (0.18.3)\n",
"Requirement already satisfied: Pillow in /usr/local/lib/python3.7/dist-packages (from easyocr) (7.1.2)\n",
"Requirement already satisfied: python-bidi in /usr/local/lib/python3.7/dist-packages (from easyocr) (0.4.2)\n",
"Requirement already satisfied: torch in /usr/local/lib/python3.7/dist-packages (from easyocr) (1.10.0+cu111)\n",
"Requirement already satisfied: PyYAML in /usr/local/lib/python3.7/dist-packages (from easyocr) (3.13)\n",
"Requirement already satisfied: typing-extensions in /usr/local/lib/python3.7/dist-packages (from torch->easyocr) (3.10.0.2)\n",
"Requirement already satisfied: six in /usr/local/lib/python3.7/dist-packages (from python-bidi->easyocr) (1.15.0)\n",
"Requirement already satisfied: PyWavelets>=1.1.1 in /usr/local/lib/python3.7/dist-packages (from scikit-image->easyocr) (1.3.0)\n",
"Requirement already satisfied: matplotlib!=3.0.0,>=2.0.0 in /usr/local/lib/python3.7/dist-packages (from scikit-image->easyocr) (3.2.2)\n",
"Requirement already satisfied: networkx>=2.0 in /usr/local/lib/python3.7/dist-packages (from scikit-image->easyocr) (2.6.3)\n",
"Requirement already satisfied: tifffile>=2019.7.26 in /usr/local/lib/python3.7/dist-packages (from scikit-image->easyocr) (2021.11.2)\n",
"Requirement already satisfied: imageio>=2.3.0 in /usr/local/lib/python3.7/dist-packages (from scikit-image->easyocr) (2.4.1)\n",
"Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.7/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->easyocr) (1.4.0)\n",
"Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.7/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->easyocr) (0.11.0)\n",
"Requirement already satisfied: python-dateutil>=2.1 in /usr/local/lib/python3.7/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->easyocr) (2.8.2)\n",
"Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /usr/local/lib/python3.7/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->easyocr) (3.0.7)\n"
]
}
],
"source": [
"!pip install easyocr"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"id": "eyfH322PbV-0"
},
"outputs": [],
"source": [
"import easyocr\n",
"import cv2\n",
"from matplotlib import pyplot as plt\n",
"import numpy as np"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "NDukAA6ZbWAY",
"outputId": "65418ad1-a265-44aa-822d-d2784b7ce87d"
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Using CPU. Note: This module is much faster with a GPU.\n"
]
}
],
"source": [
"reader =easyocr.Reader(['ar'], gpu=False)"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {
"id": "5F7p-Z7ObWDv"
},
"outputs": [],
"source": [
"img=\"sa.png\"\n",
"result = reader.readtext(img)"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "Skb4jYuXdi26",
"outputId": "9d87aac9-e2ae-4fc6-e6f2-ad08c3b15b9a"
},
"outputs": [
{
"data": {
"text/plain": [
"[[[[26, 12], [158, 12], [158, 38], [26, 38]],\n",
" 'اللغة السريانية اداة',\n",
" 0.6761014907321009],\n",
" [[[202, 12], [234, 12], [234, 38], [202, 38]], 'لدى', 0.9362846244578427],\n",
" [[[299, 17], [347, 17], [347, 35], [299, 35]], '٨ ٢ ٩ ١', 0.3863415090274744],\n",
" [[[350, 10], [654, 10], [654, 40], [350, 40]],\n",
" 'منذ ظهور طبعة معجم بردكلان الثانية في عام',\n",
" 0.44848284462292437],\n",
" [[[26, 44], [84, 44], [84, 68], [26, 68]], 'المنشورة', 0.802510657589358],\n",
" [[[153, 45], [223, 45], [223, 65], [153, 65]],\n",
" 'ما له صلة',\n",
" 0.7927370875132728],\n",
" [[[222, 40], [474, 40], [474, 70], [222, 70]],\n",
" 'ذاتها وعلى نحو يكاد يكون تاما نيكل',\n",
" 0.6270984980574649],\n",
" [[[534, 41], [606, 41], [606, 68], [534, 68]],\n",
" 'مقتبسة من',\n",
" 0.8357822051811327],\n",
" [[[622, 42], [688, 42], [688, 66], [622, 66]],\n",
" 'عمل ممتازة',\n",
" 0.6678576460676869],\n",
" [[[30, 72], [128, 72], [128, 98], [30, 98]],\n",
" 'المختصة بمصدر',\n",
" 0.6819350644037985],\n",
" [[[125, 69], [365, 69], [365, 109], [125, 109]],\n",
" 'يعتبر مرجعآ وحجة في جميع الأبواب',\n",
" 0.4047495102158319],\n",
" [[[466, 72], [556, 72], [556, 98], [466, 98]],\n",
" 'فضلاً عن ان',\n",
" 0.43358249635923485],\n",
" [[[622, 72], [688, 72], [688, 96], [622, 96]],\n",
" 'لغاية ذاك',\n",
" 0.5130338204656524],\n",
" [[[28, 102], [562, 102], [562, 134], [28, 134]],\n",
" 'كماءان سعة اطلاعه وحصافته معترف بهما في مجالي التحريك وضبط الكتابة ( الاملاء .',\n",
" 0.3507902444455084],\n",
" [[[572, 102], [690, 102], [690, 128], [572, 128]],\n",
" 'الكلات واشتقاقها',\n",
" 0.6931569729650022],\n",
" [[[79, 149], [125, 149], [125, 165], [79, 165]], 'مصن', 0.9980924006511657],\n",
" [[[126, 140], [406, 140], [406, 168], [126, 168]],\n",
" 'لتلامذة الاكليريكيات ان يقفوا على كنوز',\n",
" 0.6453492610398583],\n",
" [[[425, 141], [566, 141], [566, 170], [425, 170]],\n",
" 'من الميسور للمبتدنين',\n",
" 0.7667223461699871],\n",
" [[[600, 142], [654, 142], [654, 168], [600, 168]],\n",
" 'غير انه',\n",
" 0.8819961533453708],\n",
" [[[80, 174], [146, 174], [146, 198], [80, 198]],\n",
" 'الى مصدر',\n",
" 0.46626634550612445],\n",
" [[[202, 168], [306, 168], [306, 200], [202, 200]],\n",
" 'احياناً في ترنيبه',\n",
" 0.6402622749166896],\n",
" [[[354, 172], [634, 172], [634, 198], [354, 198]],\n",
" 'باللاتينية ومعتمد على الاشارات الاصطلاحية',\n",
" 0.5029338515728604],\n",
" [[[44, 204], [112, 204], [112, 228], [44, 228]],\n",
" 'عاجة اليه',\n",
" 0.6173247849418892],\n",
" [[[138, 200], [286, 200], [286, 230], [138, 230]],\n",
" 'آملين ان يجدوا فيه ما',\n",
" 0.5587171396331007],\n",
" [[[352, 204], [420, 204], [420, 232], [352, 232]],\n",
" 'من النوع',\n",
" 0.694496695492263],\n",
" [[[487, 213], [523, 213], [523, 227], [487, 227]],\n",
" 'معجم',\n",
" 0.7038303840779935],\n",
" [[[528, 202], [634, 202], [634, 234], [528, 234]],\n",
" 'حدانا على وضع',\n",
" 0.5244310609781306],\n",
" [[[640, 202], [690, 202], [690, 226], [640, 226]],\n",
" 'فهذا ما',\n",
" 0.5720092585900531],\n",
" [[[485, 233], [531, 233], [531, 253], [485, 253]],\n",
" 'المستطا',\n",
" 0.3142438386878773],\n",
" [[[540, 232], [688, 232], [688, 264], [540, 264]],\n",
" 'مع مراعاة الامانة قدر',\n",
" 0.7792206550090166],\n",
" [[[474, 292], [710, 292], [710, 322], [474, 322]],\n",
" 'حلايب مع التوتر الآخر الذي تثيره',\n",
" 0.8089828294216007],\n",
" [[[475, 319], [579, 319], [579, 339], [475, 339]],\n",
" 'لسودان بدعم',\n",
" 0.5810622746934507],\n",
" [[[639, 317], [711, 317], [711, 335], [639, 335]],\n",
" 'اتمامات',\n",
" 0.4311026809889249],\n",
" [[[6, 330], [53, 330], [53, 356], [6, 356]], 'غشاء', 0.8667904283993574],\n",
" [[[142, 334], [180, 334], [180, 358], [142, 358]],\n",
" 'عايه',\n",
" 0.7339405417442322],\n",
" [[[233, 335], [273, 335], [273, 355], [233, 355]],\n",
" 'خاما',\n",
" 0.42920370611339365],\n",
" [[[280, 334], [336, 334], [336, 358], [280, 358]],\n",
" 'إعدادا',\n",
" 0.6773040331909677],\n",
" [[[340, 336], [418, 336], [418, 360], [340, 360]],\n",
" 'ورق معد',\n",
" 0.27108089735361623],\n",
" [[[474, 336], [712, 336], [712, 360], [474, 360]],\n",
" 'الجماعات المتطرفة . وقد ذكرت الدوانر',\n",
" 0.6023960738342111],\n",
" [[[10, 356], [91, 356], [91, 388], [10, 388]],\n",
" 'إدخاله في',\n",
" 0.9888893481756359],\n",
" [[[97, 361], [173, 361], [173, 379], [97, 379]],\n",
" 'مستطاءا',\n",
" 0.5370151449927587],\n",
" [[[278, 360], [434, 360], [434, 392], [278, 392]],\n",
" 'يمكن نقله إلى سطح',\n",
" 0.5992674522459079],\n",
" [[[589, 357], [712, 357], [712, 382], [589, 382]],\n",
" 'الرسمية في القاهرة',\n",
" 0.7944251065662697],\n",
" [[[7, 381], [181, 381], [181, 417], [7, 417]],\n",
" 'أو الزجاج أو الخزف',\n",
" 0.6673109842931341],\n",
" [[[256, 386], [296, 386], [296, 412], [256, 412]], 'مثل', 0.9990166858303506],\n",
" [[[364, 386], [418, 386], [418, 410], [364, 410]],\n",
" 'كينات',\n",
" 0.23607765453129062],\n",
" [[[474, 378], [646, 378], [646, 402], [474, 402]],\n",
" 'آن سلطات الامن المصحرية',\n",
" 0.4651385522251569],\n",
" [[[474, 398], [708, 398], [708, 422], [474, 422]],\n",
" 'احكمت قبفتها على كافة النافذ',\n",
" 0.5572548479842196],\n",
" [[[8, 408], [78, 408], [78, 436], [8, 436]], 'فى محلول', 0.5254660678643066],\n",
" [[[128, 410], [196, 410], [196, 438], [128, 438]],\n",
" 'ورق ذو',\n",
" 0.7817407111297365],\n",
" [[[356, 406], [410, 406], [410, 434], [356, 434]],\n",
" 'الآلات',\n",
" 0.7778081247963622],\n",
" [[[477, 423], [527, 423], [527, 439], [477, 439]],\n",
" 'عذامسر',\n",
" 0.25713746258101283],\n",
" [[[589, 421], [711, 421], [711, 441], [589, 441]],\n",
" 'الحدودية تحسبا',\n",
" 0.6656803127130423],\n",
" [[[9, 441], [37, 441], [37, 461], [9, 461]], 'بعد', 0.962103242699196],\n",
" [[[96, 438], [188, 438], [188, 468], [96, 468]],\n",
" 'وتطبع عليه',\n",
" 0.9038982056034481],\n",
" [[[203, 434], [436, 434], [436, 466], [203, 466]],\n",
" 'من النشا والزلال والجلسرين',\n",
" 0.3425140107495077],\n",
" [[[472, 438], [646, 438], [646, 462], [472, 462]],\n",
" 'متطرفة من الدول المجاورة',\n",
" 0.507884821292838],\n",
" [[[660, 438], [712, 438], [712, 462], [660, 462]],\n",
" 'ارهابية',\n",
" 0.7483228294469902],\n",
" [[[576, 460], [686, 460], [686, 484], [576, 484]],\n",
" 'ضبط شبكة تضم',\n",
" 0.808632873529329],\n",
" [[[122, 466], [184, 466], [184, 496], [122, 496]],\n",
" 'ب الحبر',\n",
" 0.5886241669548303],\n",
" [[[190, 472], [234, 472], [234, 496], [190, 496]], 'سرات', 0.830750340345199],\n",
" [[[243, 473], [293, 473], [293, 491], [243, 491]],\n",
" 'عسدة',\n",
" 0.8136546015739441],\n",
" [[[301, 469], [371, 469], [371, 505], [301, 505]],\n",
" 'ثم يطبع',\n",
" 0.3382060913587262],\n",
" [[[391, 471], [435, 471], [435, 491], [391, 491]],\n",
" 'حذافه',\n",
" 0.7964559684852254],\n",
" [[[612, 478], [712, 478], [712, 502], [612, 502]],\n",
" 'وايرانية واردنية .',\n",
" 0.743445199436619],\n",
" [[[8, 494], [56, 494], [56, 520], [8, 520]], 'الغراء', 0.991580380046076],\n",
" [[[67, 501], [91, 501], [91, 521], [67, 521]], 'س', 0.5171892488013476],\n",
" [[[100, 494], [146, 494], [146, 518], [100, 518]],\n",
" 'بطبقة',\n",
" 0.9892532970302487],\n",
" [[[224, 496], [272, 496], [272, 522], [224, 522]],\n",
" 'الوجه',\n",
" 0.4676441731318883],\n",
" [[[282, 494], [322, 494], [322, 526], [282, 526]],\n",
" 'يطلى',\n",
" 0.9410088062286377],\n",
" [[[374, 496], [436, 496], [436, 520], [374, 520]],\n",
" 'الشفاف',\n",
" 0.8964589751559772],\n",
" [[[474, 498], [686, 498], [686, 524], [474, 524]],\n",
" 'ومن المتوقع ان تعلن النيابة العامة',\n",
" 0.5818878181080513],\n",
" [[[6, 524], [124, 524], [124, 552], [6, 552]],\n",
" 'الورق ويلصق',\n",
" 0.38123455889228636],\n",
" [[[132, 526], [164, 526], [164, 552], [132, 552]], 'يبل', 0.9809512495994568],\n",
" [[[173, 526], [231, 526], [231, 550], [173, 550]],\n",
" 'وعندما',\n",
" 0.5439163159312399],\n",
" [[[249, 527], [281, 527], [281, 547], [249, 547]],\n",
" 'اماء',\n",
" 0.5787212252616882],\n",
" [[[316, 524], [376, 524], [376, 550], [316, 550]],\n",
" 'للذوبان',\n",
" 0.4318081360535582],\n",
" [[[386, 526], [436, 526], [436, 554], [386, 554]],\n",
" 'القابل',\n",
" 0.6502585384864291],\n",
" [[[474, 520], [678, 520], [678, 544], [474, 544]],\n",
" 'صرخلال ايام تفساصيل',\n",
" 0.7074059042079898],\n",
" [[[474, 539], [712, 539], [712, 566], [474, 566]],\n",
" 'التحفيقات التى تجريها مع اعضاء',\n",
" 0.5620106752262085],\n",
" [[[8, 550], [110, 550], [110, 576], [8, 576]],\n",
" 'الورقة البائة',\n",
" 0.46675639910947214],\n",
" [[[178, 552], [264, 552], [264, 578], [178, 578]],\n",
" 'النقل اليه',\n",
" 0.411263828787211],\n",
" [[[340, 552], [434, 552], [434, 580], [340, 580]],\n",
" 'على السطح',\n",
" 0.8719355144363091],\n",
" [[[477, 565], [503, 565], [503, 581], [477, 581]], 'وقد', 0.6017867922782898],\n",
" [[[509, 563], [573, 563], [573, 581], [509, 581]],\n",
" '٦٢ متهما',\n",
" 0.8596581193153054],\n",
" [[[577, 567], [621, 567], [621, 581], [577, 581]],\n",
" 'عدلمم',\n",
" 0.31779726227217747],\n",
" [[[620, 558], [712, 558], [712, 586], [620, 586]],\n",
" 'الشبكة البالغ',\n",
" 0.9312193268550503],\n",
" [[[6, 574], [60, 574], [60, 602], [6, 602]], 'المنقولة', 0.5956925719826927],\n",
" [[[192, 578], [436, 578], [436, 610], [192, 610]],\n",
" 'ويثبت الطبع على ذلك السطح',\n",
" 0.5330050253912196],\n",
" [[[517, 580], [712, 580], [712, 604], [517, 604]],\n",
" 'اعتقلت اجهزة الامن المصرية',\n",
" 0.4814822506003057],\n",
" [[[40, 606], [92, 606], [92, 632], [40, 632]], 'تدخل', 0.5445001633801324],\n",
" [[[148, 604], [204, 604], [204, 630], [148, 630]],\n",
" 'معدنية',\n",
" 0.9500609801295044],\n",
" [[[270, 604], [328, 604], [328, 632], [270, 632]],\n",
" 'الخزفية',\n",
" 0.6662913971811453],\n",
" [[[406, 606], [436, 606], [436, 636], [406, 636]], 'إب', 0.671386597021847],\n",
" [[[474, 600], [708, 600], [708, 624], [474, 624]],\n",
" 'امس الال ٦٤ من اعضاء الجماعات',\n",
" 0.631106025273242],\n",
" [[[555, 629], [579, 629], [579, 641], [555, 641]], 'بعد', 0.5146158898584765],\n",
" [[[580, 619], [712, 619], [712, 646], [580, 646]],\n",
" 'المتطرفة فى مدينة قنا',\n",
" 0.6048986038968339],\n",
" [[[50, 630], [254, 630], [254, 660], [50, 660]],\n",
" 'ذلك للغسل بالاء الساخن',\n",
" 0.8480493739684781],\n",
" [[[260, 628], [434, 628], [434, 658], [260, 658]],\n",
" 'الأافران لكى تصمد بعد',\n",
" 0.4543858818883933],\n",
" [[[472, 620], [558, 620], [558, 668], [472, 668]],\n",
" '-م الاابهم م٤',\n",
" 0.34197113405480656],\n",
" [[[572, 640], [692, 640], [692, 664], [572, 664]],\n",
" 'وات الآمن بأرمنت',\n",
" 0.7396782320415763],\n",
" [[[545, 651], [571, 651], [571, 665], [545, 665]], 'بوم', 0.8061883708417107],\n",
" [[[229.42752122286237, 20.45651273371742],\n",
" [275.9714056012973, 3.7386818102766473],\n",
" [285.57247877713763, 29.54348726628258],\n",
" [238.02859439870272, 47.261318189723355]],\n",
" 'اصبح',\n",
" 0.2698570489883423],\n",
" [[[152.42752122286237, 21.45651273371742],\n",
" [199.12132034355963, 6.878679656440358],\n",
" [206.57247877713763, 30.54348726628258],\n",
" [159.87867965644037, 46.121320343559645]],\n",
" 'داري',\n",
" 0.6107633709907532],\n",
" [[[82.78057847830061, 48.4147520217908],\n",
" [148.8288573211499, 42.19050577588447],\n",
" [150.2194215216994, 64.5852479782092],\n",
" [84.1711426788501, 70.80949422411553]],\n",
" 'بالنصوم',\n",
" 0.5706030277247554],\n",
" [[[472.6546544120074, 49.520119853208115],\n",
" [532.8081445330106, 42.14524076621317],\n",
" [535.3453455879926, 63.479880146791885],\n",
" [474.1918554669894, 69.85475923378684]],\n",
" 'النصوص',\n",
" 0.4802761237399833],\n",
" [[[565.4789396203098, 75.41419735452669],\n",
" [619.553108038399, 70.42467801886018],\n",
" [621.5210603796902, 97.58580264547331],\n",
" [567.446891961601, 102.57532198113982]],\n",
" 'التاريخ',\n",
" 0.9943713300942695],\n",
" [[[360.51341170750567, 80.6620705367551],\n",
" [408.61922088678875, 70.82606485707814],\n",
" [412.48658829249433, 92.3379294632449],\n",
" [365.38077911321125, 102.17393514292186]],\n",
" 'العجم',\n",
" 0.6365374651804624],\n",
" [[[412.5857864376269, 79.58578643762691],\n",
" [462.7967687218384, 74.12157973599011],\n",
" [464.4142135623731, 92.41421356237309],\n",
" [414.2032312781616, 97.87842026400989]],\n",
" 'ماحب',\n",
" 0.4776961523721596],\n",
" [[[564.7805784783006, 148.4147520217908],\n",
" [598.6464255718306, 145.86453408839267],\n",
" [600.2194215216994, 164.5852479782092],\n",
" [566.3535744281694, 168.13546591160733]],\n",
" 'ليس',\n",
" 0.9758890478791394],\n",
" [[[634.8375236125618, 175.37253305758654],\n",
" [685.7411256774403, 170.0158854866642],\n",
" [688.1624763874382, 192.62746694241346],\n",
" [636.2588743225597, 197.9841145133358]],\n",
" 'مكترب',\n",
" 0.6069653054065315],\n",
" [[[144.41000317999047, 176.45600508798475],\n",
" [201.6513637490412, 172.5963368387429],\n",
" [202.58999682000953, 197.54399491201525],\n",
" [145.3486362509588, 202.4036631612571]],\n",
" 'الابجدي',\n",
" 0.6449451162166602],\n",
" [[[309.1055728090001, 175.21114561800016],\n",
" [354.9523741203679, 181.56613908436267],\n",
" [351.8944271909999, 198.78885438199984],\n",
" [306.0476258796321, 192.43386091563733]],\n",
" 'ومستند',\n",
" 0.9267722994989147],\n",
" [[[298.43826238111393, 211.75060990489115],\n",
" [349.6044664425481, 199.8059784613596],\n",
" [354.56173761888607, 222.24939009510885],\n",
" [303.3955335574519, 234.1940215386404]],\n",
" 'الدرحي',\n",
" 0.14649866425742114],\n",
" [[[438.51341170750567, 211.6620705367551],\n",
" [480.7594130271523, 206.04896593126904],\n",
" [482.48658829249433, 223.3379294632449],\n",
" [440.2405869728477, 227.95103406873096]],\n",
" 'معتمر',\n",
" 0.2500458843054169],\n",
" [[[83.43826238111394, 341.7506099048912],\n",
" [134.76470588235293, 334.05882352941177],\n",
" [137.56173761888607, 352.2493900951088],\n",
" [86.23529411764706, 359.94117647058823]],\n",
" 'الصور',\n",
" 0.381063957176199],\n",
" [[[194.29289321881345, 320.0502525316942],\n",
" [233.77152359715572, 333.717377609883],\n",
" [211.70710678118655, 399.9497474683058],\n",
" [172.22847640284428, 387.282622390117]],\n",
" 'تطبج',\n",
" 0.10737813893059041],\n",
" [[[229.87867965644037, 362.87867965644034],\n",
" [271.12132034355966, 352.87867965644034],\n",
" [277.12132034355966, 377.12132034355966],\n",
" [235.87867965644037, 388.12132034355966]],\n",
" 'آخر',\n",
" 0.991789791305463],\n",
" [[[647.2191311905569, 385.37530495244556],\n",
" [681.8647889466101, 380.4978644826135],\n",
" [683.7808688094431, 394.62469504755444],\n",
" [649.1352110533899, 399.5021355173865]],\n",
" 'آمس',\n",
" 0.31835660338401794],\n",
" [[[185.71963120067105, 389.46355744080523],\n",
" [247.77598881855457, 381.0802915046771],\n",
" [250.28036879932895, 404.53644255919477],\n",
" [188.22401118144543, 411.9197084953229]],\n",
" 'الخشب',\n",
" 0.7161926007264797],\n",
" [[[262.04405590008355, 392.32776211024236],\n",
" [360.92897433239034, 379.57871193398785],\n",
" [364.95594409991645, 432.67223788975764],\n",
" [266.07102566760966, 445.42128806601215]],\n",
" ' الطبتحضيرة',\n",
" 0.45451219505649465],\n",
" [[[198.7805784783006, 418.4147520217908],\n",
" [250.76574477839856, 413.0607740540433],\n",
" [252.2194215216994, 434.5852479782092],\n",
" [200.23425522160144, 439.9392259459567]],\n",
" 'يغمس',\n",
" 0.5980306830331314],\n",
" [[[526.5134117075056, 424.6620705367551],\n",
" [586.8684367723588, 419.2865968687357],\n",
" [588.4865882924944, 436.3379294632449],\n",
" [528.1315632276412, 441.7134031312643]],\n",
" 'لنسرب',\n",
" 0.6941109374545279],\n",
" [[[35.654654412007375, 442.5201198532081],\n",
" [90.721153365648, 433.9813582121675],\n",
" [93.34534558799263, 456.4798801467919],\n",
" [38.278846634352, 465.0186417878325]],\n",
" 'الصور',\n",
" 0.6819945660948152],\n",
" [[[475.2025477771711, 458.1658598874935],\n",
" [530.9845557534273, 467.7519305308216],\n",
" [526.797452222829, 484.8341401125065],\n",
" [471.01544424657266, 475.2480694691784]],\n",
" 'سودانىة',\n",
" 0.71295491391822],\n",
" [[[528.438262381114, 465.7506099048912],\n",
" [576.813442223777, 460.15653850056884],\n",
" [577.561737618886, 476.2493900951088],\n",
" [530.186557776223, 481.84346149943116]],\n",
" 'عناصر',\n",
" 0.7059854434464877],\n",
" [[[54.33589941132431, 469.5038491169865],\n",
" [118.54399491201526, 460.41000317999044],\n",
" [121.6641005886757, 489.4961508830135],\n",
" [57.456005087984735, 498.58999682000956]],\n",
" 'الابيض',\n",
" 0.59310479253937],\n",
" [[[5.780578478300615, 474.4147520217908],\n",
" [50.64438438328756, 467.86158004233937],\n",
" [53.21942152169939, 490.5852479782092],\n",
" [8.355615616712443, 497.13841995766063]],\n",
" 'غير',\n",
" 0.9947034883170077],\n",
" [[[151.07944680100655, 502.6953361612079],\n",
" [212.4056484828402, 490.2075560323936],\n",
" [217.92055319899345, 519.3046638387922],\n",
" [156.5943515171598, 531.7924439676065]],\n",
" 'المطبوع',\n",
" 0.3803251169362695],\n",
" [[[268.41000317999044, 552.4560050879847],\n",
" [331.67383409228324, 546.6396282688384],\n",
" [332.58999682000956, 573.5439949120153],\n",
" [269.32616590771676, 578.3603717311616]],\n",
" 'المطلوب',\n",
" 0.4463130507007012],\n",
" [[[112.98198161801106, 558.7801797798122],\n",
" [158.21408643600682, 547.9756924013652],\n",
" [164.01801838198892, 574.2198202201878],\n",
" [118.78591356399318, 584.0243075986348]],\n",
" 'تنزع',\n",
" 0.9590320587158203],\n",
" [[[59.71963120067104, 582.4635574408053],\n",
" [114.76669804138986, 576.0625683862013],\n",
" [117.28036879932895, 597.5364425591947],\n",
" [62.23330195861014, 603.9374316137987]],\n",
" 'الصور',\n",
" 0.8268901620601222],\n",
" [[[121.83752361256181, 581.3725330575866],\n",
" [170.7114639671612, 575.9651613221816],\n",
" [172.1624763874382, 598.6274669424134],\n",
" [124.28853603283882, 604.0348386778184]],\n",
" 'وتطبع',\n",
" 0.7980262492460753],\n",
" [[[332.4789396203098, 608.4141973545267],\n",
" [397.4824273231753, 598.3154957449882],\n",
" [401.5210603796902, 630.5858026454733],\n",
" [336.5175726768247, 639.6845042550118]],\n",
" 'الأوانى',\n",
" 0.6975204681417875],\n",
" [[[206.47893962030983, 607.4141973545267],\n",
" [260.56774662583734, 602.4486530802233],\n",
" [262.5210603796902, 629.5858026454733],\n",
" [207.43225337416263, 634.5513469197767]],\n",
" 'باحبار',\n",
" 0.6796260865860765]]"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"result"
]
}
],
"metadata": {
"colab": {
"collapsed_sections": [],
"name": "easyocr.ipynb",
"provenance": []
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.12"
}
},
"nbformat": 4,
"nbformat_minor": 1
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment