feat(ocr): 支持 PP-OCRv6 异步识别模型并设为默认,解决排队与高延迟问题

This commit is contained in:
yml2213
2026-09-10 20:12:05 +08:00
parent 784ffb5f72
commit 7734f315ce
7 changed files with 51 additions and 5 deletions
@@ -0,0 +1,13 @@
-- +goose Up
-- +goose StatementBegin
UPDATE system_configs
SET value = 'PP-OCRv6', description = 'PaddleOCR 识别模型(默认 PP-OCRv6,支持 PaddleOCR-VL-1.6 等)'
WHERE `key` = 'integration.paddle_ocr_model' AND (value = 'PaddleOCR-VL-1.6' OR value = '' OR value IS NULL);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
UPDATE system_configs
SET value = 'PaddleOCR-VL-1.6', description = 'PaddleOCR 识别模型'
WHERE `key` = 'integration.paddle_ocr_model' AND value = 'PP-OCRv6';
-- +goose StatementEnd