mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat(tools): 2.0 phase 5 wave 5b - ai pool: ocr-pdf, transcription, background composites (5 tools) (#226)
This commit is contained in:
@@ -269,6 +269,9 @@ const UpscaleSettings = lazy(() =>
|
||||
const OcrSettings = lazy(() =>
|
||||
import("@/components/tools/ocr-settings").then((m) => ({ default: m.OcrSettings })),
|
||||
);
|
||||
const OcrPdfSettings = lazy(() =>
|
||||
import("@/components/tools/ocr-pdf-settings").then((m) => ({ default: m.OcrPdfSettings })),
|
||||
);
|
||||
const BlurFacesSettings = lazy(() =>
|
||||
import("@/components/tools/blur-faces-settings").then((m) => ({
|
||||
default: m.BlurFacesSettings,
|
||||
@@ -344,6 +347,26 @@ const ColorBlindnessSettings = lazy(() =>
|
||||
default: m.ColorBlindnessSettings,
|
||||
})),
|
||||
);
|
||||
const TranscribeAudioSettings = lazy(() =>
|
||||
import("@/components/tools/transcribe-audio-settings").then((m) => ({
|
||||
default: m.TranscribeAudioSettings,
|
||||
})),
|
||||
);
|
||||
const AutoSubtitlesSettings = lazy(() =>
|
||||
import("@/components/tools/auto-subtitles-settings").then((m) => ({
|
||||
default: m.AutoSubtitlesSettings,
|
||||
})),
|
||||
);
|
||||
const BackgroundReplaceSettings = lazy(() =>
|
||||
import("@/components/tools/background-replace-settings").then((m) => ({
|
||||
default: m.BackgroundReplaceSettings,
|
||||
})),
|
||||
);
|
||||
const BlurBackgroundSettings = lazy(() =>
|
||||
import("@/components/tools/blur-background-settings").then((m) => ({
|
||||
default: m.BlurBackgroundSettings,
|
||||
})),
|
||||
);
|
||||
const ConvertVideoSettings = lazy(() =>
|
||||
import("@/components/tools/convert-video-settings").then((m) => ({
|
||||
default: m.ConvertVideoSettings,
|
||||
@@ -952,6 +975,7 @@ const ENTRY_CONFIG: ReadonlyArray<[string, RegistryEntryConfig]> = [
|
||||
["remove-background", { Settings: RemoveBgSettings }],
|
||||
["upscale", { Settings: UpscaleSettings }],
|
||||
["ocr", { Settings: OcrSettings }],
|
||||
["ocr-pdf", { accept: ".pdf", Settings: OcrPdfSettings }],
|
||||
["blur-faces", { Settings: BlurFacesSettings }],
|
||||
["enhance-faces", { Settings: EnhanceFacesSettings }],
|
||||
["erase-object", { Settings: EraseObjectSettingsWrapper as never }],
|
||||
@@ -965,6 +989,10 @@ const ENTRY_CONFIG: ReadonlyArray<[string, RegistryEntryConfig]> = [
|
||||
["transparency-fixer", { Settings: TransparencyFixerSettings }],
|
||||
["content-aware-resize", { Settings: ContentAwareResizeSettings }],
|
||||
["ai-canvas-expand", { Settings: AiCanvasExpandSettings }],
|
||||
["transcribe-audio", { accept: AUDIO_INPUTS.join(","), Settings: TranscribeAudioSettings }],
|
||||
["auto-subtitles", { accept: VIDEO_INPUTS.join(","), Settings: AutoSubtitlesSettings }],
|
||||
["background-replace", { Settings: BackgroundReplaceSettings }],
|
||||
["blur-background", { Settings: BlurBackgroundSettings }],
|
||||
|
||||
// Video tools
|
||||
["convert-video", { accept: VIDEO_INPUTS.join(","), Settings: ConvertVideoSettings }],
|
||||
|
||||
Reference in New Issue
Block a user