A GUI application for configuring blur effects on document images with real-time preview and dataset generation capabilities.
The Blur Suite Interactive Configuration Tool provides a professional GUI for:
- Visual Blur Configuration: Select from 6 different blur effect types with real-time parameter adjustment
- Live Preview: Side-by-side before/after comparison with synchronized zoom and pan
- Quality Metrics: Real-time display of PSNR, SSIM, processing time, and other metrics
- Preset Management: Save and load configuration presets for quick access
- Dataset Export: Generate configuration files for batch processing and dataset creation
- Gaussian Blur: Convolution with Gaussian kernel
- Motion Blur: Directional motion simulation
- Defocus Blur: Camera defocus simulation
- Average Blur: Simple mean filtering
- Bilateral Blur: Edge-preserving smoothing
- No Blur: Pass-through for testing
- Side-by-side Comparison: Original vs blurred images
- Multiple View Modes: Side-by-side, overlay, difference
- Zoom and Pan: Detailed inspection capabilities
- Synchronized Views: Linked zoom/pan across views
The interactive tool is included with the Blur Suite SDK:
pip install blur-suite # or from source- Python 3.9+
- Tkinter (usually included with Python)
- OpenCV (cv2)
- Numpy
- PIL (Pillow)
from blur_suite.interactive import BlurSuiteApp
# Create and run the application
app = BlurSuiteApp()
app.create_gui()
app.run()- Start the application
- Press
Ctrl+Oor use File → Load Images - Select a directory containing at least 10 document images
- Images will be validated and thumbnails generated
- Select Blur Type: Choose from the dropdown in the left panel
- Adjust Parameters: Use sliders to modify effect parameters in real-time
- Preview Results: View changes immediately in the comparison panel
- Monitor PSNR, SSIM, and other metrics in the right panel
- Green = Good quality, Yellow = Fair, Red = Poor
- Processing time shows performance impact
- Configure desired blur settings
- Enter a name in the "Preset Name" field
- Click "Save Current Settings"
- Load presets anytime with the dropdown and "Load" button
- Configure all desired images
- Press
Ctrl+Sor use File → Export Configuration - Choose filename and format (JSON recommended)
- Generated file can be used for batch processing
-
GUI doesn't start: Ensure Tkinter is available (
python -c "import tkinter") -
Images don't load: Check file formats and ensure minimum 10 images
-
Blur preview slow: Reduce image size or use simpler blur effects
-
Export fails: Check file permissions and disk space