Fix default parameter consistency and cleanup formatting

- Update tolerance default from 20 to 30 to match documentation
- Update min_area default from 8000 to 10000 to match documentation
- Add missing period to minimum contour area description
- Replace double dashes with single hyphens in tooltip translations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Anthony Stirling 2025-09-26 00:05:55 +01:00
parent 00efc8802c
commit 2ef63566f1
3 changed files with 11 additions and 11 deletions

View File

@ -1684,18 +1684,18 @@
"useCase3": "Break collages into individual photos",
"useCase4": "Pull photos from documents",
"quickFixes": "Quick fixes",
"problem1": "Photos not detected → increase Tolerance to 3050",
"problem2": "Too many false detections → increase Minimum Area to 15,00020,000",
"problem3": "Crops are too tight → increase Border Size to 510",
"problem1": "Photos not detected → increase Tolerance to 30-50",
"problem2": "Too many false detections → increase Minimum Area to 15,000-20,000",
"problem3": "Crops are too tight → increase Border Size to 5-10",
"problem4": "Tilted photos not straightened → lower Angle Threshold to ~5°",
"problem5": "Dust/noise boxes → increase Minimum Contour Area to 10002000",
"problem5": "Dust/noise boxes → increase Minimum Contour Area to 1000-2000",
"setupTips": "Setup tips",
"tip1": "Use a plain, light background",
"tip2": "Leave a small gap (≈1 cm) between photos",
"tip3": "Scan at 300600 DPI",
"tip3": "Scan at 300-600 DPI",
"tip4": "Clean the scanner glass",
"headsUp": "Heads-up",
"headsUpDesc": "Overlapping photos or backgrounds very close in colour to the photos can reduce accuracytry a lighter or darker background and leave more space."
"headsUpDesc": "Overlapping photos or backgrounds very close in colour to the photos can reduce accuracy-try a lighter or darker background and leave more space."
}
},
"sign": {

View File

@ -32,7 +32,7 @@ const ScannerImageSplitSettings: React.FC<ScannerImageSplitSettingsProps> = ({
label={t('ScannerImageSplit.selectText.3', 'Tolerance:')}
description={t('ScannerImageSplit.selectText.4', 'Determines the range of colour variation around the estimated background colour (default: 30).')}
value={parameters.tolerance}
onChange={(value) => onParameterChange('tolerance', Number(value) || 20)}
onChange={(value) => onParameterChange('tolerance', Number(value) || 30)}
min={0}
step={1}
disabled={disabled}
@ -42,7 +42,7 @@ const ScannerImageSplitSettings: React.FC<ScannerImageSplitSettingsProps> = ({
label={t('ScannerImageSplit.selectText.5', 'Minimum Area:')}
description={t('ScannerImageSplit.selectText.6', 'Sets the minimum area threshold for a photo (default: 10000).')}
value={parameters.min_area}
onChange={(value) => onParameterChange('min_area', Number(value) || 8000)}
onChange={(value) => onParameterChange('min_area', Number(value) || 10000)}
min={0}
step={100}
disabled={disabled}
@ -50,7 +50,7 @@ const ScannerImageSplitSettings: React.FC<ScannerImageSplitSettingsProps> = ({
<NumberInput
label={t('ScannerImageSplit.selectText.7', 'Minimum Contour Area:')}
description={t('ScannerImageSplit.selectText.8', 'Sets the minimum contour area threshold for a photo')}
description={t('ScannerImageSplit.selectText.8', 'Sets the minimum contour area threshold for a photo.')}
value={parameters.min_contour_area}
onChange={(value) => onParameterChange('min_contour_area', Number(value) || 500)}
min={0}

View File

@ -11,8 +11,8 @@ export interface ScannerImageSplitParameters extends BaseParameters {
export const defaultParameters: ScannerImageSplitParameters = {
angle_threshold: 10,
tolerance: 20,
min_area: 8000,
tolerance: 30,
min_area: 10000,
min_contour_area: 500,
border_size: 1,
};