sigdetect 0.5.0__py3-none-any.whl → 0.5.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sigdetect/api.py +10 -4
- sigdetect/cli.py +20 -7
- sigdetect/config.py +12 -0
- sigdetect/cropping.py +25 -18
- sigdetect/detector/signature_model.py +4 -0
- {sigdetect-0.5.0.dist-info → sigdetect-0.5.1.dist-info}/METADATA +11 -7
- {sigdetect-0.5.0.dist-info → sigdetect-0.5.1.dist-info}/RECORD +10 -10
- {sigdetect-0.5.0.dist-info → sigdetect-0.5.1.dist-info}/WHEEL +0 -0
- {sigdetect-0.5.0.dist-info → sigdetect-0.5.1.dist-info}/entry_points.txt +0 -0
- {sigdetect-0.5.0.dist-info → sigdetect-0.5.1.dist-info}/top_level.txt +0 -0
sigdetect/api.py
CHANGED
|
@@ -229,6 +229,7 @@ def CropSignatureImages(
|
|
|
229
229
|
dpi: int = 200,
|
|
230
230
|
returnBytes: Literal[False] = False,
|
|
231
231
|
saveToDisk: bool = True,
|
|
232
|
+
docx: bool = False,
|
|
232
233
|
) -> list[Path]: ...
|
|
233
234
|
|
|
234
235
|
|
|
@@ -241,6 +242,7 @@ def CropSignatureImages(
|
|
|
241
242
|
dpi: int,
|
|
242
243
|
returnBytes: Literal[True],
|
|
243
244
|
saveToDisk: bool,
|
|
245
|
+
docx: bool = False,
|
|
244
246
|
) -> list[SignatureCrop]: ...
|
|
245
247
|
|
|
246
248
|
|
|
@@ -252,16 +254,17 @@ def CropSignatureImages(
|
|
|
252
254
|
dpi: int = 200,
|
|
253
255
|
returnBytes: bool = False,
|
|
254
256
|
saveToDisk: bool = True,
|
|
257
|
+
docx: bool = False,
|
|
255
258
|
) -> list[Path] | list[SignatureCrop]:
|
|
256
|
-
"""Create
|
|
259
|
+
"""Create PNG files containing cropped signature images (or DOCX when enabled).
|
|
257
260
|
|
|
258
261
|
Accepts either a :class:`FileResult` instance or the ``dict`` returned by
|
|
259
262
|
:func:`DetectPdf`. Requires the optional ``pymupdf`` dependency.
|
|
260
263
|
Set ``returnBytes=True`` to also receive in-memory PNG bytes for each crop. Set
|
|
261
264
|
``saveToDisk=False`` to skip writing PNG files while still returning in-memory data.
|
|
262
|
-
When ``
|
|
263
|
-
|
|
264
|
-
|
|
265
|
+
When ``docx`` is True, DOCX files are written instead of PNG files. When ``returnBytes`` is
|
|
266
|
+
True and ``docx`` is enabled, the returned :class:`SignatureCrop` objects include
|
|
267
|
+
``docx_bytes``.
|
|
265
268
|
"""
|
|
266
269
|
|
|
267
270
|
from sigdetect.cropping import crop_signatures
|
|
@@ -274,6 +277,7 @@ def CropSignatureImages(
|
|
|
274
277
|
dpi=dpi,
|
|
275
278
|
return_bytes=returnBytes,
|
|
276
279
|
save_files=saveToDisk,
|
|
280
|
+
docx=docx,
|
|
277
281
|
)
|
|
278
282
|
if original_dict is not None:
|
|
279
283
|
original_dict.clear()
|
|
@@ -305,6 +309,8 @@ def _CoerceFileResult(
|
|
|
305
309
|
BoundingBox=tuple(bbox) if bbox else None,
|
|
306
310
|
CropPath=entry.get("crop_path"),
|
|
307
311
|
CropBytes=entry.get("crop_bytes"),
|
|
312
|
+
CropDocxPath=entry.get("crop_docx_path"),
|
|
313
|
+
CropDocxBytes=entry.get("crop_docx_bytes"),
|
|
308
314
|
)
|
|
309
315
|
)
|
|
310
316
|
|
sigdetect/cli.py
CHANGED
|
@@ -64,13 +64,19 @@ def Detect(
|
|
|
64
64
|
cropSignatures: bool | None = typer.Option(
|
|
65
65
|
None,
|
|
66
66
|
"--crop-signatures/--no-crop-signatures",
|
|
67
|
-
help="Write
|
|
67
|
+
help="Write PNG crops for signature widgets (requires PyMuPDF)",
|
|
68
|
+
show_default=False,
|
|
69
|
+
),
|
|
70
|
+
cropDocx: bool | None = typer.Option(
|
|
71
|
+
None,
|
|
72
|
+
"--crop-docx/--no-crop-docx",
|
|
73
|
+
help="Write DOCX crops instead of PNG files (requires PyMuPDF + python-docx)",
|
|
68
74
|
show_default=False,
|
|
69
75
|
),
|
|
70
76
|
cropDirectory: Path | None = typer.Option(
|
|
71
77
|
None,
|
|
72
78
|
"--crop-dir",
|
|
73
|
-
help="Directory for signature
|
|
79
|
+
help="Directory for signature crops (defaults to out_dir/signature_crops)",
|
|
74
80
|
),
|
|
75
81
|
cropDpi: int | None = typer.Option(
|
|
76
82
|
None,
|
|
@@ -83,7 +89,7 @@ def Detect(
|
|
|
83
89
|
cropBytes: bool = typer.Option(
|
|
84
90
|
False,
|
|
85
91
|
"--crop-bytes/--no-crop-bytes",
|
|
86
|
-
help="Embed base64 PNG bytes
|
|
92
|
+
help="Embed base64 PNG bytes (and DOCX bytes when --crop-docx) in results JSON",
|
|
87
93
|
show_default=False,
|
|
88
94
|
),
|
|
89
95
|
detectWetSignatures: bool | None = typer.Option(
|
|
@@ -128,6 +134,8 @@ def Detect(
|
|
|
128
134
|
overrides["WriteResults"] = writeResults
|
|
129
135
|
if cropSignatures is not None:
|
|
130
136
|
overrides["CropSignatures"] = cropSignatures
|
|
137
|
+
if cropDocx is not None:
|
|
138
|
+
overrides["CropDocx"] = cropDocx
|
|
131
139
|
if cropDirectory is not None:
|
|
132
140
|
overrides["CropOutputDirectory"] = cropDirectory
|
|
133
141
|
if cropDpi is not None:
|
|
@@ -181,6 +189,7 @@ def Detect(
|
|
|
181
189
|
base_dir = configuration.OutputDirectory or configuration.PdfRoot
|
|
182
190
|
crop_dir = base_dir / "signature_crops"
|
|
183
191
|
cropping_enabled = configuration.CropSignatures
|
|
192
|
+
docx_enabled = configuration.CropDocx
|
|
184
193
|
cropping_available = True
|
|
185
194
|
cropping_attempted = False
|
|
186
195
|
|
|
@@ -199,6 +208,7 @@ def Detect(
|
|
|
199
208
|
logger=Logger,
|
|
200
209
|
return_bytes=crop_bytes_enabled,
|
|
201
210
|
save_files=cropping_enabled,
|
|
211
|
+
docx=docx_enabled,
|
|
202
212
|
)
|
|
203
213
|
cropping_attempted = True
|
|
204
214
|
if crop_bytes_enabled:
|
|
@@ -206,15 +216,18 @@ def Detect(
|
|
|
206
216
|
crop.signature.CropBytes = base64.b64encode(crop.image_bytes).decode(
|
|
207
217
|
"ascii"
|
|
208
218
|
)
|
|
219
|
+
if crop.docx_bytes:
|
|
220
|
+
crop.signature.CropDocxBytes = base64.b64encode(
|
|
221
|
+
crop.docx_bytes
|
|
222
|
+
).decode("ascii")
|
|
209
223
|
except SignatureCroppingUnavailable as exc:
|
|
210
224
|
cropping_available = False
|
|
211
225
|
Logger.warning("Signature cropping unavailable", extra={"error": str(exc)})
|
|
212
226
|
typer.echo(str(exc), err=True)
|
|
213
227
|
except Exception as exc: # pragma: no cover - defensive
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
)
|
|
228
|
+
cropping_available = False
|
|
229
|
+
Logger.warning("Signature cropping unavailable", extra={"error": str(exc)})
|
|
230
|
+
typer.echo(str(exc), err=True)
|
|
218
231
|
|
|
219
232
|
total_bboxes += sum(1 for sig in file_result.Signatures if sig.BoundingBox)
|
|
220
233
|
|
sigdetect/config.py
CHANGED
|
@@ -31,6 +31,7 @@ class DetectConfiguration(BaseModel):
|
|
|
31
31
|
PseudoSignatures: bool = Field(default=True, alias="pseudo_signatures")
|
|
32
32
|
RecurseXObjects: bool = Field(default=True, alias="recurse_xobjects")
|
|
33
33
|
CropSignatures: bool = Field(default=True, alias="crop_signatures")
|
|
34
|
+
CropDocx: bool = Field(default=False, alias="crop_docx")
|
|
34
35
|
CropOutputDirectory: Path | None = Field(default=None, alias="crop_output_dir")
|
|
35
36
|
CropImageDpi: int = Field(default=200, alias="crop_image_dpi", ge=72, le=600)
|
|
36
37
|
DetectWetSignatures: bool = Field(default=True, alias="detect_wet_signatures")
|
|
@@ -88,6 +89,10 @@ class DetectConfiguration(BaseModel):
|
|
|
88
89
|
def crop_signatures(self) -> bool: # pragma: no cover - simple passthrough
|
|
89
90
|
return self.CropSignatures
|
|
90
91
|
|
|
92
|
+
@property
|
|
93
|
+
def crop_docx(self) -> bool: # pragma: no cover - simple passthrough
|
|
94
|
+
return self.CropDocx
|
|
95
|
+
|
|
91
96
|
@property
|
|
92
97
|
def crop_output_dir(self) -> Path | None: # pragma: no cover - simple passthrough
|
|
93
98
|
return self.CropOutputDirectory
|
|
@@ -133,6 +138,7 @@ def LoadConfiguration(path: Path | None) -> DetectConfiguration:
|
|
|
133
138
|
env_out_dir = os.getenv("SIGDETECT_OUT_DIR")
|
|
134
139
|
env_profile = os.getenv("SIGDETECT_PROFILE")
|
|
135
140
|
env_crop = os.getenv("SIGDETECT_CROP_SIGNATURES")
|
|
141
|
+
env_crop_docx = os.getenv("SIGDETECT_CROP_DOCX")
|
|
136
142
|
env_crop_dir = os.getenv("SIGDETECT_CROP_DIR")
|
|
137
143
|
env_crop_dpi = os.getenv("SIGDETECT_CROP_DPI")
|
|
138
144
|
env_detect_wet = os.getenv("SIGDETECT_DETECT_WET")
|
|
@@ -159,6 +165,12 @@ def LoadConfiguration(path: Path | None) -> DetectConfiguration:
|
|
|
159
165
|
raw_data["crop_signatures"] = True
|
|
160
166
|
elif lowered in {"0", "false", "no", "off"}:
|
|
161
167
|
raw_data["crop_signatures"] = False
|
|
168
|
+
if env_crop_docx is not None:
|
|
169
|
+
lowered = env_crop_docx.lower()
|
|
170
|
+
if lowered in {"1", "true", "yes", "on"}:
|
|
171
|
+
raw_data["crop_docx"] = True
|
|
172
|
+
elif lowered in {"0", "false", "no", "off"}:
|
|
173
|
+
raw_data["crop_docx"] = False
|
|
162
174
|
if env_crop_dir:
|
|
163
175
|
raw_data["crop_output_dir"] = env_crop_dir
|
|
164
176
|
if env_crop_dpi:
|
sigdetect/cropping.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Helpers for converting signature bounding boxes into DOCX crops."""
|
|
1
|
+
"""Helpers for converting signature bounding boxes into PNG or DOCX crops."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
@@ -27,7 +27,7 @@ class SignatureCroppingUnavailable(RuntimeError):
|
|
|
27
27
|
"""Raised when PNG cropping cannot be performed (e.g., PyMuPDF missing)."""
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
class SignatureDocxUnavailable(
|
|
30
|
+
class SignatureDocxUnavailable(SignatureCroppingUnavailable):
|
|
31
31
|
"""Raised when DOCX creation cannot be performed (e.g., python-docx missing)."""
|
|
32
32
|
|
|
33
33
|
|
|
@@ -52,6 +52,7 @@ def crop_signatures(
|
|
|
52
52
|
logger: logging.Logger | None = None,
|
|
53
53
|
return_bytes: Literal[False] = False,
|
|
54
54
|
save_files: bool = True,
|
|
55
|
+
docx: bool = False,
|
|
55
56
|
) -> list[Path]: ...
|
|
56
57
|
|
|
57
58
|
|
|
@@ -65,6 +66,7 @@ def crop_signatures(
|
|
|
65
66
|
logger: logging.Logger | None = None,
|
|
66
67
|
return_bytes: Literal[True],
|
|
67
68
|
save_files: bool = True,
|
|
69
|
+
docx: bool = False,
|
|
68
70
|
) -> list[SignatureCrop]: ...
|
|
69
71
|
|
|
70
72
|
|
|
@@ -77,14 +79,14 @@ def crop_signatures(
|
|
|
77
79
|
logger: logging.Logger | None = None,
|
|
78
80
|
return_bytes: bool = False,
|
|
79
81
|
save_files: bool = True,
|
|
82
|
+
docx: bool = False,
|
|
80
83
|
) -> list[Path] | list[SignatureCrop]:
|
|
81
|
-
"""Render each signature bounding box to a PNG image and wrap it in
|
|
84
|
+
"""Render each signature bounding box to a PNG image and optionally wrap it in DOCX.
|
|
82
85
|
|
|
83
86
|
Set ``return_bytes=True`` to collect in-memory PNG bytes for each crop while also writing
|
|
84
87
|
the files to ``output_dir``. Set ``save_files=False`` to skip writing PNGs to disk.
|
|
85
|
-
When ``
|
|
86
|
-
|
|
87
|
-
will contain the DOCX payload.
|
|
88
|
+
When ``docx=True``, DOCX files are written instead of PNGs. When ``return_bytes`` is True
|
|
89
|
+
and ``docx=True``, ``SignatureCrop.docx_bytes`` will contain the DOCX payload.
|
|
88
90
|
"""
|
|
89
91
|
|
|
90
92
|
if fitz is None: # pragma: no cover - exercised when dependency absent
|
|
@@ -101,14 +103,11 @@ def crop_signatures(
|
|
|
101
103
|
generated_paths: list[Path] = []
|
|
102
104
|
generated_crops: list[SignatureCrop] = []
|
|
103
105
|
|
|
104
|
-
|
|
105
|
-
docx_in_memory = return_bytes
|
|
106
|
-
docx_enabled = docx_to_disk or docx_in_memory
|
|
106
|
+
docx_enabled = docx
|
|
107
107
|
docx_available = Document is not None
|
|
108
|
-
if docx_enabled and not docx_available
|
|
109
|
-
|
|
110
|
-
"
|
|
111
|
-
extra={"error": "python-docx is required to generate DOCX outputs"},
|
|
108
|
+
if docx_enabled and not docx_available:
|
|
109
|
+
raise SignatureDocxUnavailable(
|
|
110
|
+
"python-docx is required to generate DOCX outputs for signature crops."
|
|
112
111
|
)
|
|
113
112
|
|
|
114
113
|
with fitz.open(pdf_path) as document: # type: ignore[attr-defined]
|
|
@@ -146,6 +145,8 @@ def crop_signatures(
|
|
|
146
145
|
try:
|
|
147
146
|
image_bytes: bytes | None = None
|
|
148
147
|
pixmap = page.get_pixmap(matrix=matrix, clip=clip, alpha=False)
|
|
148
|
+
if save_files and not docx_enabled:
|
|
149
|
+
pixmap.save(png_destination)
|
|
149
150
|
if return_bytes or docx_enabled:
|
|
150
151
|
image_bytes = pixmap.tobytes("png")
|
|
151
152
|
except Exception as exc: # pragma: no cover - defensive
|
|
@@ -162,12 +163,12 @@ def crop_signatures(
|
|
|
162
163
|
continue
|
|
163
164
|
|
|
164
165
|
docx_bytes: bytes | None = None
|
|
165
|
-
if docx_enabled
|
|
166
|
+
if docx_enabled:
|
|
166
167
|
if image_bytes is None: # pragma: no cover - defensive
|
|
167
168
|
continue
|
|
168
169
|
try:
|
|
169
170
|
docx_bytes = _build_docx_bytes(image_bytes)
|
|
170
|
-
if
|
|
171
|
+
if save_files:
|
|
171
172
|
docx_destination.write_bytes(docx_bytes)
|
|
172
173
|
except SignatureDocxUnavailable as exc:
|
|
173
174
|
if logger:
|
|
@@ -184,14 +185,20 @@ def crop_signatures(
|
|
|
184
185
|
)
|
|
185
186
|
|
|
186
187
|
if save_files:
|
|
187
|
-
|
|
188
|
-
|
|
188
|
+
if docx_enabled:
|
|
189
|
+
signature.CropPath = None
|
|
190
|
+
signature.CropDocxPath = str(docx_destination)
|
|
191
|
+
generated_paths.append(docx_destination)
|
|
192
|
+
else:
|
|
193
|
+
signature.CropDocxPath = None
|
|
194
|
+
signature.CropPath = str(png_destination)
|
|
195
|
+
generated_paths.append(png_destination)
|
|
189
196
|
if return_bytes:
|
|
190
197
|
if image_bytes is None: # pragma: no cover - defensive
|
|
191
198
|
continue
|
|
192
199
|
generated_crops.append(
|
|
193
200
|
SignatureCrop(
|
|
194
|
-
path=docx_destination,
|
|
201
|
+
path=docx_destination if docx_enabled else png_destination,
|
|
195
202
|
image_bytes=image_bytes,
|
|
196
203
|
signature=signature,
|
|
197
204
|
docx_bytes=docx_bytes,
|
|
@@ -21,6 +21,8 @@ class Signature:
|
|
|
21
21
|
BoundingBox: tuple[float, float, float, float] | None = None
|
|
22
22
|
CropPath: str | None = None
|
|
23
23
|
CropBytes: str | None = None
|
|
24
|
+
CropDocxPath: str | None = None
|
|
25
|
+
CropDocxBytes: str | None = None
|
|
24
26
|
|
|
25
27
|
def to_dict(self) -> dict[str, Any]:
|
|
26
28
|
"""Return the legacy snake_case representation used in JSON payloads."""
|
|
@@ -37,4 +39,6 @@ class Signature:
|
|
|
37
39
|
"bounding_box": list(self.BoundingBox) if self.BoundingBox else None,
|
|
38
40
|
"crop_path": self.CropPath,
|
|
39
41
|
"crop_bytes": self.CropBytes,
|
|
42
|
+
"crop_docx_path": self.CropDocxPath,
|
|
43
|
+
"crop_docx_bytes": self.CropDocxBytes,
|
|
40
44
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sigdetect
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: Signature detection and role attribution for PDFs
|
|
5
5
|
Author-email: BT Asmamaw <basmamaw@angeiongroup.com>
|
|
6
6
|
License: MIT
|
|
@@ -105,7 +105,7 @@ sigdetect detect \
|
|
|
105
105
|
- `retainer` → client / firm (prefers detecting two signatures)
|
|
106
106
|
- `--recursive/--no-recursive` toggles whether `sigdetect detect` descends into subdirectories when hunting for PDFs (recursive by default).
|
|
107
107
|
- Results output is disabled by default; set `write_results: true` or pass `--write-results` when you need `results.json` (for EDA).
|
|
108
|
-
- Cropping (`--crop-signatures`) writes
|
|
108
|
+
- Cropping (`--crop-signatures`) writes PNG crops to disk by default; enable `--crop-docx` to write DOCX files instead of PNGs. `--crop-bytes` embeds base64 PNG data in `signatures[].crop_bytes` and, when `--crop-docx` is enabled, embeds DOCX bytes in `signatures[].crop_docx_bytes`. PyMuPDF is required for crops, and `python-docx` is required for DOCX output.
|
|
109
109
|
- Wet detection runs automatically for non-e-sign PDFs when dependencies are available; missing OCR dependencies add a `ManualReview:*` hint instead of failing. PyMuPDF + Tesseract are required for wet detection.
|
|
110
110
|
- If the executable is not on `PATH`, you can always fall back to `python -m sigdetect.cli ...`.
|
|
111
111
|
|
|
@@ -142,7 +142,7 @@ result = detector.Detect(Path("/path/to/pdfs/example.pdf"))
|
|
|
142
142
|
print(result.to_dict())
|
|
143
143
|
~~~
|
|
144
144
|
|
|
145
|
-
`Detect(Path)` returns a **FileResult** dataclass; call `.to_dict()` for the JSON-friendly representation (see [Result schema](#result-schema)). Each signature entry now exposes `bounding_box` coordinates (PDF points, origin bottom-left). When cropping is enabled, `crop_path` points at the generated
|
|
145
|
+
`Detect(Path)` returns a **FileResult** dataclass; call `.to_dict()` for the JSON-friendly representation (see [Result schema](#result-schema)). Each signature entry now exposes `bounding_box` coordinates (PDF points, origin bottom-left). When PNG cropping is enabled, `crop_path` points at the generated image; when DOCX cropping is enabled, `crop_docx_path` points at the generated doc. Use `Engine="auto"` if you want the single-pass defaults that prefer PyMuPDF (for geometry) when available.
|
|
146
146
|
|
|
147
147
|
---
|
|
148
148
|
|
|
@@ -194,7 +194,7 @@ for res in ScanDirectory(
|
|
|
194
194
|
# store in DB, print, etc.
|
|
195
195
|
pass
|
|
196
196
|
|
|
197
|
-
# 3)
|
|
197
|
+
# 3) Crop signature snippets for FileResult objects (requires PyMuPDF; DOCX needs python-docx)
|
|
198
198
|
detector = get_detector(pdfRoot="/path/to/pdfs", profileName="hipaa")
|
|
199
199
|
file_result = detector.Detect(Path("/path/to/pdfs/example.pdf"))
|
|
200
200
|
CropSignatureImages(
|
|
@@ -233,7 +233,8 @@ High-level summary (per file):
|
|
|
233
233
|
"hint": "AcroSig:sig_patient",
|
|
234
234
|
"render_type": "typed",
|
|
235
235
|
"bounding_box": [10.0, 10.0, 150.0, 40.0],
|
|
236
|
-
"crop_path": "signature_crops/example/sig_01_patient.
|
|
236
|
+
"crop_path": "signature_crops/example/sig_01_patient.png",
|
|
237
|
+
"crop_docx_path": null
|
|
237
238
|
},
|
|
238
239
|
{
|
|
239
240
|
"page": null,
|
|
@@ -259,8 +260,10 @@ High-level summary (per file):
|
|
|
259
260
|
- **`roles`** summarizes unique non-`unknown` roles across signatures.
|
|
260
261
|
- In retainer profile, emitter prefers two signatures (client + firm), often on the same page.
|
|
261
262
|
- **`signatures[].bounding_box`** reports the widget rectangle in PDF points (origin bottom-left).
|
|
262
|
-
- **`signatures[].crop_path`** is populated when
|
|
263
|
+
- **`signatures[].crop_path`** is populated when PNG crops are generated (via CLI `--crop-signatures` or `CropSignatureImages`).
|
|
264
|
+
- **`signatures[].crop_docx_path`** is populated when DOCX crops are generated (`--crop-docx` or `docx=True`).
|
|
263
265
|
- **`signatures[].crop_bytes`** contains base64 PNG data when CLI `--crop-bytes` is enabled.
|
|
266
|
+
- **`signatures[].crop_docx_bytes`** contains base64 DOCX data when `--crop-docx` and `--crop-bytes` are enabled together.
|
|
264
267
|
|
|
265
268
|
---
|
|
266
269
|
|
|
@@ -287,7 +290,8 @@ write_results: false
|
|
|
287
290
|
pseudo_signatures: true
|
|
288
291
|
recurse_xobjects: true
|
|
289
292
|
profile: retainer # or: hipaa
|
|
290
|
-
crop_signatures: false # enable to write
|
|
293
|
+
crop_signatures: false # enable to write PNG crops (requires pymupdf)
|
|
294
|
+
crop_docx: false # enable to write DOCX crops instead of PNGs (requires python-docx)
|
|
291
295
|
# crop_output_dir: ./signature_crops
|
|
292
296
|
crop_image_dpi: 200
|
|
293
297
|
detect_wet_signatures: false # kept for compatibility; non-e-sign PDFs still trigger OCR
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
sigdetect/__init__.py,sha256=YvnTwlC1jfq83EhQS_1JjiiHK7_wJCCU1JvHv5E1qWY,573
|
|
2
|
-
sigdetect/api.py,sha256=
|
|
3
|
-
sigdetect/cli.py,sha256=
|
|
4
|
-
sigdetect/config.py,sha256=
|
|
5
|
-
sigdetect/cropping.py,sha256=
|
|
2
|
+
sigdetect/api.py,sha256=hDfa6z4SoHth1Dw9HDfSPiytMQrqu_oyBZlXBwSh9g4,11010
|
|
3
|
+
sigdetect/cli.py,sha256=X5GqZ-PK67vz4OHN5r7h-V0hO886ZblUiUdKDuFowtU,10930
|
|
4
|
+
sigdetect/config.py,sha256=3SP1rkcWBGXloCDFomBJRMRKZOvXuHQbhIBqpVrzYmY,8365
|
|
5
|
+
sigdetect/cropping.py,sha256=HfOJrV2Xv9Eo0lCIl3mukz49agKB6h2TML99B0qQJNc,8837
|
|
6
6
|
sigdetect/eda.py,sha256=S92G1Gjmepri__D0n_V6foq0lQgH-RXI9anW8A58jfw,4681
|
|
7
7
|
sigdetect/logging_setup.py,sha256=LMF8ao_a-JwH0S522T6aYTFX3e8Ajjv_5ODS2YiBcHA,6404
|
|
8
8
|
sigdetect/utils.py,sha256=T9rubLf5T9JmjOHYMOba1j34fhOJaWocAXccnGTxRUE,5198
|
|
@@ -16,9 +16,9 @@ sigdetect/detector/base_detector.py,sha256=GmAgUWO_fQgIfnihZSoyhR3wpnwZ-X3hS0Kuy
|
|
|
16
16
|
sigdetect/detector/file_result_model.py,sha256=j2gTc9Sw3fJOHlexYsR_m5DiwHA8DzIzAMToESfvo4A,1767
|
|
17
17
|
sigdetect/detector/pymupdf_engine.py,sha256=N6oxvUa-48VvvhjbMk0R0kfScsggNKS7u5FLSeBRfWw,17358
|
|
18
18
|
sigdetect/detector/pypdf2_engine.py,sha256=kB8cIp_gMvCla0LIBi9sd19g0361Oc9TjCW_ZViUBJQ,47410
|
|
19
|
-
sigdetect/detector/signature_model.py,sha256=
|
|
20
|
-
sigdetect-0.5.
|
|
21
|
-
sigdetect-0.5.
|
|
22
|
-
sigdetect-0.5.
|
|
23
|
-
sigdetect-0.5.
|
|
24
|
-
sigdetect-0.5.
|
|
19
|
+
sigdetect/detector/signature_model.py,sha256=T2Hmfkfz_hZsDzwOhepxfNmkedxQp3_XHdrP8yGKoCk,1322
|
|
20
|
+
sigdetect-0.5.1.dist-info/METADATA,sha256=_Jnyl9_A1yZUrKwWxUxVB-9rcMG3MdUqiN5WX_zlpqQ,14131
|
|
21
|
+
sigdetect-0.5.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
22
|
+
sigdetect-0.5.1.dist-info/entry_points.txt,sha256=iqtfKjBU44-omM7Sh-idGz2ahw19oAvpvSyKZVArG3o,48
|
|
23
|
+
sigdetect-0.5.1.dist-info/top_level.txt,sha256=PKlfwUobkRC0viwiSXmhtw83G26FSNpimWYC1Uy00FY,10
|
|
24
|
+
sigdetect-0.5.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|