mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-02 05:53:15 -05:00
feat: Remove OCR Support (#2838)
* remove ocr package * remove tesseract * remove OCR from app * remove OCR from tests * fix docs
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
# This file is auto-generated by gen_schema_exports.py
|
||||
from .ocr import OcrAssetReq, OcrTsvResponse
|
||||
|
||||
__all__ = [
|
||||
"OcrAssetReq",
|
||||
"OcrTsvResponse",
|
||||
]
|
||||
@@ -1,21 +0,0 @@
|
||||
from mealie.schema._mealie import MealieModel
|
||||
|
||||
|
||||
class OcrTsvResponse(MealieModel):
|
||||
level: int = 0
|
||||
page_num: int = 0
|
||||
block_num: int = 0
|
||||
par_num: int = 0
|
||||
line_num: int = 0
|
||||
word_num: int = 0
|
||||
left: int = 0
|
||||
top: int = 0
|
||||
width: int = 0
|
||||
height: int = 0
|
||||
conf: float = 0.0
|
||||
text: str = ""
|
||||
|
||||
|
||||
class OcrAssetReq(MealieModel):
|
||||
recipe_slug: str
|
||||
asset_name: str
|
||||
@@ -128,7 +128,6 @@ class Recipe(RecipeSummary):
|
||||
assets: list[RecipeAsset] | None = []
|
||||
notes: list[RecipeNote] | None = []
|
||||
extras: dict | None = {}
|
||||
is_ocr_recipe: bool | None = False
|
||||
|
||||
comments: list[RecipeCommentOut] | None = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user