feat(logging,ocr): persistent state/audit log and configurable OCR scale - #23
Closed
ndomako10 wants to merge 2 commits into
Closed
feat(logging,ocr): persistent state/audit log and configurable OCR scale#23ndomako10 wants to merge 2 commits into
ndomako10 wants to merge 2 commits into
Conversation
Logging:
- Replace per-run rename-log-{timestamp}.json with rename-state.json
(small file, overwritten each run) and rename-log.json (append-only
audit log, deduplicated on OriginalFile)
- Prior state loading uses a 3-level fallback: state file → audit log →
output directory scan
- Add -StartOdometer parameter to seed odometer on first-ever run
- Remove $reportsDir, $logFile, and timestamped log approach
OCR:
- Add -ScalePct parameter to Get-OdometerReading; decode image at
configurable percentage before OCR (default 25%)
- Thread OcrScalePercent setting through Add-OcrToPhotoContext and
main body; reads from settings.json key OcrScalePercent
closes #22
Owner
Author
|
Superseded by #24, which includes all commits from this branch plus fixes for the temporal baseline bug and the -Source parameter override. Closing as not planned. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rename-log-{timestamp}.jsonwith two persistent files:rename-state.json(overwritten each run, tiny) andrename-log.json(append-only audit log, deduplicated onOriginalFile)-StartOdometerparameter to seed the initial odometer value when all fallbacks find nothing (first-ever run)-ScalePctparameter toGet-OdometerReadingand threadsOcrScalePercentfromsettings.jsonthrough the pipeline; defaults to 25% (suitable for 4032×3024 source images)Closes #22