diff --git a/frontend/public/locales/en-GB/translation.json b/frontend/public/locales/en-GB/translation.json index 28178f429..17bafc6f4 100644 --- a/frontend/public/locales/en-GB/translation.json +++ b/frontend/public/locales/en-GB/translation.json @@ -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 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", + "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 1000–2000", + "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 300–600 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 accuracy—try 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": { diff --git a/frontend/src/components/tools/scannerImageSplit/ScannerImageSplitSettings.tsx b/frontend/src/components/tools/scannerImageSplit/ScannerImageSplitSettings.tsx index 0f9fa379e..e0aef436a 100644 --- a/frontend/src/components/tools/scannerImageSplit/ScannerImageSplitSettings.tsx +++ b/frontend/src/components/tools/scannerImageSplit/ScannerImageSplitSettings.tsx @@ -32,7 +32,7 @@ const ScannerImageSplitSettings: React.FC = ({ 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 = ({ 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 = ({ onParameterChange('min_contour_area', Number(value) || 500)} min={0} diff --git a/frontend/src/hooks/tools/scannerImageSplit/useScannerImageSplitParameters.ts b/frontend/src/hooks/tools/scannerImageSplit/useScannerImageSplitParameters.ts index 1421faf16..bb028c0e7 100644 --- a/frontend/src/hooks/tools/scannerImageSplit/useScannerImageSplitParameters.ts +++ b/frontend/src/hooks/tools/scannerImageSplit/useScannerImageSplitParameters.ts @@ -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, };