- capture/: frame sampling at configurable fps, ffmpeg audio extraction (WAV, whisper-ready) - vision/: changed-pixel motion scoring, stable/moving segmentation, contour + perspective document detection, Laplacian sharpness scoring, optional CLAHE enhancement - pipeline: two-pass detect (motion timeline, then best-frame crop per stable window) writing crops, debug frames, report.json, and motion_scores.csv - CLI: probe / detect / extract-audio subcommands - config.yaml with tunable thresholds; placeholder packages for events, transcribe, ocr, naming, pdf, review_cli - synthetic sample video generator + 16 unit tests
24 lines
584 B
Python
24 lines
584 B
Python
"""Module 2: motion analysis, document detection, perspective correction."""
|
|
|
|
from paperpod.vision.document import DocumentDetection, detect_document, warp_document
|
|
from paperpod.vision.enhance import enhance_for_ocr
|
|
from paperpod.vision.motion import (
|
|
Segment,
|
|
find_segments,
|
|
motion_score,
|
|
prepare_gray,
|
|
)
|
|
from paperpod.vision.sharpness import sharpness_score
|
|
|
|
__all__ = [
|
|
"Segment",
|
|
"find_segments",
|
|
"motion_score",
|
|
"prepare_gray",
|
|
"DocumentDetection",
|
|
"detect_document",
|
|
"warp_document",
|
|
"sharpness_score",
|
|
"enhance_for_ocr",
|
|
]
|