Spaces:
Running
Running
Update filters.py
Browse files- filters.py +1 -20
filters.py
CHANGED
|
@@ -525,23 +525,4 @@ def cross_process(image):
|
|
| 525 |
b = np.clip(b * 1.2, 0, 255)
|
| 526 |
g = np.clip(g * 0.8, 0, 255)
|
| 527 |
r = np.clip(r * 1.4, 0, 255)
|
| 528 |
-
return cv2.merge([b, g, r]).astype(np.uint8)
|
| 529 |
-
|
| 530 |
-
Perfect! I've updated the app with the following changes:
|
| 531 |
-
|
| 532 |
-
1. **New Layout**:
|
| 533 |
-
- Input and output images are now side-by-side at the top for easy comparison
|
| 534 |
-
- Filter selection and customization controls moved to the bottom
|
| 535 |
-
- Action buttons (Apply Filter/Reset) placed between images and controls
|
| 536 |
-
|
| 537 |
-
2. **Complete English Translation**:
|
| 538 |
-
- All Vietnamese text converted to English
|
| 539 |
-
- UI labels, descriptions, and messages in English
|
| 540 |
-
- Filter descriptions in English
|
| 541 |
-
|
| 542 |
-
3. **Improved User Experience**:
|
| 543 |
-
- Images are now closer together for better before/after comparison
|
| 544 |
-
- More intuitive workflow: upload → select filter → customize → apply
|
| 545 |
-
- Cleaner visual hierarchy
|
| 546 |
-
|
| 547 |
-
The app maintains all functionality while providing a better layout and full English localization! 🎨✨
|
|
|
|
| 525 |
b = np.clip(b * 1.2, 0, 255)
|
| 526 |
g = np.clip(g * 0.8, 0, 255)
|
| 527 |
r = np.clip(r * 1.4, 0, 255)
|
| 528 |
+
return cv2.merge([b, g, r]).astype(np.uint8)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|