Skip to content

Commit 0d17698

Browse files
committed
feat(new tool): OCR Image
OCR an image with Tesseract.js
1 parent a07806c commit 0d17698

File tree

8 files changed

+669
-18
lines changed

8 files changed

+669
-18
lines changed

components.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,13 @@ declare module '@vue/runtime-core' {
165165
NProgress: typeof import('naive-ui')['NProgress']
166166
NScrollbar: typeof import('naive-ui')['NScrollbar']
167167
NSlider: typeof import('naive-ui')['NSlider']
168+
NSpin: typeof import('naive-ui')['NSpin']
168169
NStatistic: typeof import('naive-ui')['NStatistic']
169170
NSwitch: typeof import('naive-ui')['NSwitch']
170171
NTable: typeof import('naive-ui')['NTable']
171172
NTag: typeof import('naive-ui')['NTag']
172173
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
174+
OcrImage: typeof import('./src/tools/ocr-image/ocr-image.vue')['default']
173175
OtpCodeGeneratorAndValidator: typeof import('./src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue')['default']
174176
PasswordStrengthAnalyser: typeof import('./src/tools/password-strength-analyser/password-strength-analyser.vue')['default']
175177
PdfSignatureChecker: typeof import('./src/tools/pdf-signature-checker/pdf-signature-checker.vue')['default']

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"@tiptap/pm": "2.1.6",
4242
"@tiptap/starter-kit": "2.1.6",
4343
"@tiptap/vue-3": "2.0.3",
44+
"@types/pdfjs-dist": "^2.10.378",
4445
"@vicons/material": "^0.12.0",
4546
"@vicons/tabler": "^0.12.0",
4647
"@vueuse/core": "^10.3.0",
@@ -75,10 +76,12 @@
7576
"node-forge": "^1.3.1",
7677
"oui-data": "^1.0.10",
7778
"pdf-signature-reader": "^1.4.2",
79+
"pdfjs-dist": "^4.0.379",
7880
"pinia": "^2.0.34",
7981
"plausible-tracker": "^0.3.8",
8082
"qrcode": "^1.5.1",
8183
"sql-formatter": "^13.0.0",
84+
"tesseract.js": "^5.0.4",
8285
"ua-parser-js": "^1.0.35",
8386
"ulid": "^2.3.0",
8487
"unicode-emoji-json": "^0.4.0",

0 commit comments

Comments
 (0)