mirror of
https://github.com/immich-app/immich.git
synced 2026-05-22 23:52:32 -04:00
56e431226f
* feat: ocr bounding box * bounding boxes * pr feedback * pr feedback * allow copy across text boxes * pr feedback
18 lines
578 B
Svelte
18 lines
578 B
Svelte
<script lang="ts">
|
|
import { ocrManager } from '$lib/stores/ocr.svelte';
|
|
import { IconButton } from '@immich/ui';
|
|
import { mdiTextRecognition } from '@mdi/js';
|
|
import { t } from 'svelte-i18n';
|
|
</script>
|
|
|
|
<IconButton
|
|
title={ocrManager.showOverlay ? $t('hide_text_recognition') : $t('show_text_recognition')}
|
|
icon={mdiTextRecognition}
|
|
class={"dark {ocrStore.showOverlay ? 'bg-immich-primary text-white dark' : 'dark'}"}
|
|
color="secondary"
|
|
variant="ghost"
|
|
shape="round"
|
|
aria-label={$t('text_recognition')}
|
|
onclick={() => ocrManager.toggleOcrBoundingBox()}
|
|
/>
|