Skip to content

Autocrop and Batch feeder without "No Paper" error#830

Open
ArneNostitz wants to merge 1 commit into
cyanfish:masterfrom
ArneNostitz:master
Open

Autocrop and Batch feeder without "No Paper" error#830
ArneNostitz wants to merge 1 commit into
cyanfish:masterfrom
ArneNostitz:master

Conversation

@ArneNostitz

Copy link
Copy Markdown

This PR introduces two new enhancements to improve the scanning workflow: Auto-Crop and Seamless Batch Feeder Scanning.

1. Auto-Crop

Added a new post-processing option to automatically crop scanned pages to their content.

Independent Axis Control: Users can configure the width and height cropping modes independently (Auto, Fixed, or Off). This is particularly useful for scanning documents with uniform widths but variable heights (like long receipts or custom-sized slips).
Core Implementation: Added AutoCropper which scans the image bit-pixels to detect content bounds based on configurable thresholds, and applies a corresponding CropTransform.
UI Integration: Added a dedicated AutoCropForm accessible from the Advanced Profile settings, the Desktop toolbar, and Image List Actions.
Configuration: Exposed settings via ScanOptions and ScanProfile, allowing configurable padding and target fixed dimensions (in millimeters). Included full SDK integration via RemotePostProcessor.
Testing: Added comprehensive unit tests in AutoCropTests.cs.

2. Seamless Batch Feeder (No "No Paper" Error)

Improved the batch scanning experience when using an Automatic Document Feeder (ADF).

Modified the batch scanning logic to handle an empty feeder gracefully without throwing a disruptive "No Paper" error dialog, streamlining continuous batch scanning workflows.

Related Issues

Resolves #789 - Auto-crop for custom document scans
Resolves #716 - Paper sensor on Brother DS-740D (Seamless batch feeder / No "No Paper" error)
Partially addresses #806 - Feature Request: Auto Crop for Imported Images
Partially addresses #226 - Automatic page size

Checklist

Tested with local builds
Added unit tests for Auto-Crop functionality
Updated relevant UI strings and localization resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-crop for custom document scans Paper sensor on Brother DS-740D

1 participant