mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-26 20:12:38 +08:00
feat(ocr): 添加Tesseract.js的logo
This commit is contained in:
parent
277bf1dc74
commit
1da7492b42
BIN
src/renderer/src/assets/images/providers/Tesseract.js.png
Normal file
BIN
src/renderer/src/assets/images/providers/Tesseract.js.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
@ -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[] = [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user