feat(ocr): 添加Tesseract.js的logo

This commit is contained in:
icarus 2025-08-22 13:50:55 +08:00
parent 277bf1dc74
commit 1da7492b42
2 changed files with 8 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -1,12 +1,14 @@
import MacOSLogo from '@renderer/assets/images/providers/macos.svg'
import TesseractLogo from '@renderer/assets/images/providers/Tesseract.js.png'
import { BuiltinOcrProvider, isBuiltinOcrProviderId } from '@renderer/types/ocr'
export function getOcrProviderLogo(providerId: string) {
switch (providerId) {
case 'system':
return MacOSLogo
default:
return undefined
if (isBuiltinOcrProviderId(providerId)) {
switch (providerId) {
case 'tesseract':
return TesseractLogo
}
}
return undefined
}
export const OCR_PROVIDER_CONFIG: BuiltinOcrProvider[] = [