Skip to content

Commit 995782a

Browse files
add
1 parent 6ba90c9 commit 995782a

File tree

5 files changed

+168
-8
lines changed

5 files changed

+168
-8
lines changed

All APK/Image2Text.apk

-58.5 KB
Binary file not shown.

All APK/OCR.apk

37.1 MB
Binary file not shown.

OCR/pubspec.lock

+160-8
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ packages:
5757
url: "https://pub.dev"
5858
source: hosted
5959
version: "0.3.4+2"
60+
crypto:
61+
dependency: transitive
62+
description:
63+
name: crypto
64+
sha256: ec30d999af904f33454ba22ed9a86162b35e52b44ac4807d1d93c288041d7d27
65+
url: "https://pub.dev"
66+
source: hosted
67+
version: "3.0.5"
6068
csslib:
6169
dependency: transitive
6270
description:
@@ -89,6 +97,14 @@ packages:
8997
url: "https://pub.dev"
9098
source: hosted
9199
version: "7.0.1"
100+
edge_detection:
101+
dependency: "direct main"
102+
description:
103+
name: edge_detection
104+
sha256: "515bc8b797382f567fd27f2ac972b804077e616865b071a8f6abb568c6aaac4e"
105+
url: "https://pub.dev"
106+
source: hosted
107+
version: "1.1.3"
92108
fake_async:
93109
dependency: transitive
94110
description:
@@ -125,10 +141,10 @@ packages:
125141
dependency: transitive
126142
description:
127143
name: file_selector_macos
128-
sha256: f42eacb83b318e183b1ae24eead1373ab1334084404c8c16e0354f9a3e55d385
144+
sha256: cb284e267f8e2a45a904b5c094d2ba51d0aabfc20b1538ab786d9ef7dc2bf75c
129145
url: "https://pub.dev"
130146
source: hosted
131-
version: "0.9.4"
147+
version: "0.9.4+1"
132148
file_selector_platform_interface:
133149
dependency: transitive
134150
description:
@@ -145,11 +161,27 @@ packages:
145161
url: "https://pub.dev"
146162
source: hosted
147163
version: "0.9.3+2"
164+
fixnum:
165+
dependency: transitive
166+
description:
167+
name: fixnum
168+
sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1"
169+
url: "https://pub.dev"
170+
source: hosted
171+
version: "1.1.0"
148172
flutter:
149173
dependency: "direct main"
150174
description: flutter
151175
source: sdk
152176
version: "0.0.0"
177+
flutter_cache_manager:
178+
dependency: transitive
179+
description:
180+
name: flutter_cache_manager
181+
sha256: "400b6592f16a4409a7f2bb929a9a7e38c72cceb8ffb99ee57bbf2cb2cecf8386"
182+
url: "https://pub.dev"
183+
source: hosted
184+
version: "3.4.1"
153185
flutter_lints:
154186
dependency: "direct dev"
155187
description:
@@ -196,18 +228,18 @@ packages:
196228
dependency: transitive
197229
description:
198230
name: google_mlkit_commons
199-
sha256: "27d626c66a181351a953eba5b6ff1ff123aadb891b4dab085b292118f039d6ac"
231+
sha256: "9990a65f407a3ef6bae646bf10143faa93fec126683771465bc6c0b43fb0e6e9"
200232
url: "https://pub.dev"
201233
source: hosted
202-
version: "0.7.1"
234+
version: "0.8.1"
203235
google_mlkit_text_recognition:
204236
dependency: "direct main"
205237
description:
206238
name: google_mlkit_text_recognition
207-
sha256: "89c848329355f165ff17ca8645cab5998770e9e25e431fe6dd8261ed9cf7bdc4"
239+
sha256: "179349417066fa2c275d7a6ed6cbceeb7fa265d73aacdb2d732f1a2991face0a"
208240
url: "https://pub.dev"
209241
source: hosted
210-
version: "0.13.0"
242+
version: "0.13.1"
211243
html:
212244
dependency: transitive
213245
description:
@@ -392,6 +424,14 @@ packages:
392424
url: "https://pub.dev"
393425
source: hosted
394426
version: "1.0.6"
427+
opencv_4:
428+
dependency: "direct main"
429+
description:
430+
name: opencv_4
431+
sha256: "9c6b93ba02b6542d848b02523519724de208b6da55df9b20285ef60d34f8452e"
432+
url: "https://pub.dev"
433+
source: hosted
434+
version: "1.0.0"
395435
page_transition:
396436
dependency: transitive
397437
description:
@@ -408,6 +448,54 @@ packages:
408448
url: "https://pub.dev"
409449
source: hosted
410450
version: "1.9.0"
451+
path_provider:
452+
dependency: "direct main"
453+
description:
454+
name: path_provider
455+
sha256: fec0d61223fba3154d87759e3cc27fe2c8dc498f6386c6d6fc80d1afdd1bf378
456+
url: "https://pub.dev"
457+
source: hosted
458+
version: "2.1.4"
459+
path_provider_android:
460+
dependency: transitive
461+
description:
462+
name: path_provider_android
463+
sha256: "6f01f8e37ec30b07bc424b4deabac37cacb1bc7e2e515ad74486039918a37eb7"
464+
url: "https://pub.dev"
465+
source: hosted
466+
version: "2.2.10"
467+
path_provider_foundation:
468+
dependency: transitive
469+
description:
470+
name: path_provider_foundation
471+
sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16
472+
url: "https://pub.dev"
473+
source: hosted
474+
version: "2.4.0"
475+
path_provider_linux:
476+
dependency: transitive
477+
description:
478+
name: path_provider_linux
479+
sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279
480+
url: "https://pub.dev"
481+
source: hosted
482+
version: "2.2.1"
483+
path_provider_platform_interface:
484+
dependency: transitive
485+
description:
486+
name: path_provider_platform_interface
487+
sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334"
488+
url: "https://pub.dev"
489+
source: hosted
490+
version: "2.1.2"
491+
path_provider_windows:
492+
dependency: transitive
493+
description:
494+
name: path_provider_windows
495+
sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7
496+
url: "https://pub.dev"
497+
source: hosted
498+
version: "2.3.0"
411499
permission_handler:
412500
dependency: transitive
413501
description:
@@ -464,6 +552,14 @@ packages:
464552
url: "https://pub.dev"
465553
source: hosted
466554
version: "2.2.1"
555+
platform:
556+
dependency: transitive
557+
description:
558+
name: platform
559+
sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65"
560+
url: "https://pub.dev"
561+
source: hosted
562+
version: "3.1.5"
467563
plugin_platform_interface:
468564
dependency: transitive
469565
description:
@@ -472,6 +568,14 @@ packages:
472568
url: "https://pub.dev"
473569
source: hosted
474570
version: "2.1.8"
571+
rxdart:
572+
dependency: transitive
573+
description:
574+
name: rxdart
575+
sha256: "5c3004a4a8dbb94bd4bf5412a4def4acdaa12e12f269737a5751369e12d1a962"
576+
url: "https://pub.dev"
577+
source: hosted
578+
version: "0.28.0"
475579
sky_engine:
476580
dependency: transitive
477581
description: flutter
@@ -485,6 +589,30 @@ packages:
485589
url: "https://pub.dev"
486590
source: hosted
487591
version: "1.10.0"
592+
sprintf:
593+
dependency: transitive
594+
description:
595+
name: sprintf
596+
sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23"
597+
url: "https://pub.dev"
598+
source: hosted
599+
version: "7.0.0"
600+
sqflite:
601+
dependency: transitive
602+
description:
603+
name: sqflite
604+
sha256: a43e5a27235518c03ca238e7b4732cf35eabe863a369ceba6cbefa537a66f16d
605+
url: "https://pub.dev"
606+
source: hosted
607+
version: "2.3.3+1"
608+
sqflite_common:
609+
dependency: transitive
610+
description:
611+
name: sqflite_common
612+
sha256: "3da423ce7baf868be70e2c0976c28a1bb2f73644268b7ffa7d2e08eab71f16a4"
613+
url: "https://pub.dev"
614+
source: hosted
615+
version: "2.5.4"
488616
stack_trace:
489617
dependency: transitive
490618
description:
@@ -509,6 +637,14 @@ packages:
509637
url: "https://pub.dev"
510638
source: hosted
511639
version: "1.2.0"
640+
synchronized:
641+
dependency: transitive
642+
description:
643+
name: synchronized
644+
sha256: "539ef412b170d65ecdafd780f924e5be3f60032a1128df156adad6c5b373d558"
645+
url: "https://pub.dev"
646+
source: hosted
647+
version: "3.1.0+1"
512648
term_glyph:
513649
dependency: transitive
514650
description:
@@ -541,6 +677,14 @@ packages:
541677
url: "https://pub.dev"
542678
source: hosted
543679
version: "1.3.2"
680+
uuid:
681+
dependency: transitive
682+
description:
683+
name: uuid
684+
sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff
685+
url: "https://pub.dev"
686+
source: hosted
687+
version: "4.5.1"
544688
vector_math:
545689
dependency: transitive
546690
description:
@@ -609,10 +753,10 @@ packages:
609753
dependency: transitive
610754
description:
611755
name: web
612-
sha256: d43c1d6b787bf0afad444700ae7f4db8827f701bc61c255ac8d328c6f4d52062
756+
sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
613757
url: "https://pub.dev"
614758
source: hosted
615-
version: "1.0.0"
759+
version: "1.1.0"
616760
win32:
617761
dependency: transitive
618762
description:
@@ -629,6 +773,14 @@ packages:
629773
url: "https://pub.dev"
630774
source: hosted
631775
version: "1.1.5"
776+
xdg_directories:
777+
dependency: transitive
778+
description:
779+
name: xdg_directories
780+
sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d
781+
url: "https://pub.dev"
782+
source: hosted
783+
version: "1.0.4"
632784
sdks:
633785
dart: ">=3.4.3 <4.0.0"
634786
flutter: ">=3.22.0"

OCR/pubspec.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ dependencies:
1717
google_mlkit_text_recognition: ^0.13.0
1818
image_picker: ^1.1.2
1919
image_cropper: ^8.0.2
20+
opencv_4: ^1.0.0
21+
path_provider: ^2.1.4
22+
edge_detection: ^1.1.3
2023

2124
dev_dependencies:
2225
flutter_test:

deskew.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# print("hello world")
2+
import numpy as np
3+
import cv2
4+
import pytesseract
5+
from craft_text_detector import Craft

0 commit comments

Comments
 (0)