0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 Upload files (images with text) form your local filesystem
21 01 Introduction to Pytesseract Google Colab Notebook for OCR using Pytesseract • https://bhadreshpsavani.medium.com/how-to-use-tesseract-library-for-ocr-in-googlecolab-notebook-5da5470e4fe0 • https://nanonets.com/blog/ocr-with-tesseract/ 02 Installation • install tesseract-ocr on linux เเละ libtesseract-dev เพื่อใช command line on terminal • install pytesseract สำหรับการเขียนดวย ภาษา python *หมายเหตุ * ใน colab ตอง install ใหมทุกครั้ง เเละหลังจาก install ดวย cell ดานลางจำเปนตอง Restart Runtime ใหม
22
23
24
25 04 OCR Tesseract Functions 4.1 image_to_string Text Extraction การดึงขอความ
26
27
28
29 2 Ap 116 68 112 60 2 QO 147 109 34 92 2 My 422 36 32 22
30 7 Company 462 36 106 22 3 721 421 63 37 17 3 6th 471 62 34 18
31 4 Ave, 513 63 46 20 3 New 568 63 48 17 5 York, 624 62 54 21
32 2 NY 688 63 30 17 6 10011, 728 63 73 20 23 [email protected] 421 118 355 22 20 www.mycompany.com.br 421 145 287 23
33 8 yourlogo 87 213 164 37 4 Date 36 365 51 18 10 08/17/2021 95 365 130 19 6 Client 35 406 66 18 2 My 36 434 34 22
34 7 Cliente 78 433 79 18 12 “Description 35 469 148 35 13 QuantityxRate 188 469 243 35 8 Discount 437 469 132 30
35 5 Total 734 469 68 30 5 “tent 35 509 81 32 4 3.00 247 551 47 17 1 x 309 555 11 13
36 6 240.00 329 551 76 17 5 7.00% 484 551 66 17 6 669.60 713 547 77 38
37 4 Item 51 604 48 17 1 2 108 604 12 17 4 4.00 246 631 48 18
38 1 x 309 636 11 12 6 120.00 329 631 76 18 5 10.00 488 631 61 18
39 6 470.00 712 644 78 18 4 Item 51 686 48 17 1 2 108 686 12 17
40 4 4.00 246 713 48 17 1 x 309 717 11 13 6 120.00 329 713 76 17 5 10.00 488 709 61 30
41 6 470.00 712 709 78 38 12 “Description 35 769 148 35 13 QuantityxRate 223 769 208 36 8 Discount 437 769 132 31
42 5 Total 734 769 68 31 9 “Sevicest 35 810 131 30 2 ue 275 849 79 47
43 1 x 363 855 11 12 6 10.00% 479 850 79 17 6 234.00 713 846 77 38 8 Services 50 919 94 17
44 1 2 153 919 12 17 4 3.00 247 946 47 17 1 x 309 950 11 13
45 6 200.00 328 946 77 18 7 Payment 36 1187 100 22 7 details 144 1186 76 18 2 My 36 1214 33 23
46 7 Payment 78 1214 97 23 5 Notes 36 1255 66 18 2 My 36 1283 33 22
47 6 Notes. 78 1283 65 17 2 My 153 1506 34 22 7 Company 195 1506 107 22
48 8 Subtotal 384 1015 95 18 3 Tax 341 1043 39 17 1 1 389 1043 7 17 6 (4.5)% 410 1041 69 24
49 3 Tax 362 1070 39 18 1 2 410 1070 12 18 4 (2)% 431 1069 48 24