Config : annotation max height.
This commit is contained in:
1 parent
ff7496b113
commit
d2aa4faa1b
5 files changed
+57
-5
No files matched your search
@@ -1,9 +1,12 @@
|
||||
"""Locate tablet documents, including the parts of a large checked copy."""
|
||||
from pathlib import Path
|
||||
|
||||
from copienator.configuration import ANNOTATION_MAX_HEIGHT_PX
|
||||
from copienator.json_io import read_json
|
||||
|
||||
MAX_HEIGHT_PX = 32000
|
||||
if type(ANNOTATION_MAX_HEIGHT_PX) is not int or ANNOTATION_MAX_HEIGHT_PX <= 0:
|
||||
raise ValueError("ANNOTATION_MAX_HEIGHT_PX must be a positive integer (pixels)")
|
||||
MAX_HEIGHT_PX = ANNOTATION_MAX_HEIGHT_PX
|
||||
|
||||
|
||||
def copy_documents(directory: Path) -> list[Path]:
|
||||
|
||||
@@ -39,6 +39,7 @@ THINKING_LEVEL_PRO = "high"
|
||||
ALWAYS_CROP = False
|
||||
ANNOTATION_MARGIN_LEFT = 300
|
||||
ANNOTATION_LOW_MARGIN_LEFT = 400
|
||||
ANNOTATION_MAX_HEIGHT_PX = 32000
|
||||
SHOW_PERSONAL_STEPS = False
|
||||
RETURN_JPEG_ENABLED = True
|
||||
RETURN_PDF_ENABLED = True
|
||||
|
||||
Reference in new issue
Block a user