3.8 KiB
3.8 KiB
User Guide
Goal
ScanSlicer helps you turn a single scan image (for example, a flatbed scan containing many printed photos) into individual straightened output files.
Supported Input/Output
- Input directory scan for files ending with:
.png,.jpg,.jpeg - Output formats:
jpgwith quality control (1-100)pngwith compression control (0-9)
Main UI Areas
- Left panel:
- Directory and image navigation
- Save settings
- Presets and auto-tune
- Detection parameter controls
- Right panel:
- Preview canvas with detected/manual boxes
- Toolbar actions (detect, lock, rotate mode, add/remove box, etc.)
- Bottom status bar:
- Current status text
- Current filename
Basic Workflow
- Click
Open directory. - Confirm
Output Directory(or clickSet output directory). - Select sorting mode (
NameorTime) if needed. - Load an image from the image dropdown, or use previous/next buttons.
- Run detection (
Detect) or rely on automatic detect-on-load. - Review and edit boxes.
- Lock the boxes to export.
- Click
Save images.
Box Editing
Select and inspect
- Click inside a box to make it active.
- Active box index is shown in the toolbar (
Active Box: N).
Corner drag
- Drag corner handles to reshape the quadrilateral freely.
Move entire box
- Double-click inside a box, then drag to move it.
Rotate mode
- Toggle rotate mode (toolbar rotate button).
- Drag corner handles to rotate the active box.
Squarize
- Converts active quadrilateral into a cleaner rectangle while preserving tilt.
- Enables side handles for edge-length adjustment.
Reset rotation
- Resets active box orientation to axis-aligned while keeping center/size.
Add/remove
Add box: inserts a new manual box (starts locked).Remove active box: deletes current active box.
Locking Behavior
- Only locked boxes are saved.
Lock/unlock activetoggles one box.Lock/unlock alltoggles every box currently shown.- During new detections, locked boxes are preserved and merged with new candidates (overlap-aware).
Canvas Navigation
- Right-click drag: pan.
- Mouse wheel: zoom.
Reset view: re-fit image to viewport.
Preview Filter Toggle
Filtershows the processed detection mask preview instead of the original image.- This uses cached results from the last detection run.
Auto-Tune Workflow
- Choose profile (
Fast,Balanced,Thorough,Exhaustive). - Click
Auto-tune. - Auto-tune runs a coarse candidate scan then refines top candidates.
- Best parameter set is applied automatically.
- Run detection again (handled by app after auto-tune completion).
Presets and Defaults
Load defaults: load saved defaults if present; else factory defaults.Save new defaults: persist current parameters as default.Save as preset...: save current parameter set with a name.Delete current preset: remove a user preset.- Preset dropdown:
Custommeans unsaved/manual state.- Built-in presets are currently empty; user presets are supported.
Saving Outputs
- Save filename format:
<input_basename>_<index>.<ext>- Example:
scan_003.jpg
- Export uses perspective transform per box, so output is straightened to the box geometry.
- If no locked boxes exist, save is blocked with a warning.
Status and Logs
- Status messages are shown in the bottom bar.
- A session log is also written to disk (
status.logpath depends on runtime config).
Tips
- If no photos are detected:
- Try toggling
Preview filterto inspect mask quality. - Adjust threshold/canny, morphology, and area/aspect controls.
- Use
Auto-tunewith a deeper profile.
- Try toggling
- For mixed photo sizes:
- Relax
Min Photo Sizeand widen aspect ratio bounds.
- Relax
- For border artifacts:
- Increase
Ignore Border Margin.
- Increase