Update pages/3_Life Cycle Of ML Project.py
Browse files
pages/3_Life Cycle Of ML Project.py
CHANGED
|
@@ -381,7 +381,7 @@ elif st.session_state.page == "Conversion_of_Images":
|
|
| 381 |
- **BGR to RGB:** Converts from OpenCV's default BGR format to the standard RGB format.
|
| 382 |
- **BGR to HSV:** Converts the image to the HSV (Hue, Saturation, Value) color space.\n
|
| 383 |
**Examples of Conversions:**
|
| 384 |
-
|
| 385 |
```python
|
| 386 |
import cv2
|
| 387 |
# Load the image
|
|
@@ -398,6 +398,7 @@ elif st.session_state.page == "Conversion_of_Images":
|
|
| 398 |
- **RGB:** Standard format for visualization in libraries like `matplotlib`.
|
| 399 |
- **HSV:** Useful for color-based segmentation, as it separates color information from brightness.
|
| 400 |
""")
|
|
|
|
| 401 |
|
| 402 |
# Header for Splitting Channels
|
| 403 |
st.header(":red[🔹 Splitting Color Channels in an Image]")
|
|
|
|
| 381 |
- **BGR to RGB:** Converts from OpenCV's default BGR format to the standard RGB format.
|
| 382 |
- **BGR to HSV:** Converts the image to the HSV (Hue, Saturation, Value) color space.\n
|
| 383 |
**Examples of Conversions:**
|
| 384 |
+
|
| 385 |
```python
|
| 386 |
import cv2
|
| 387 |
# Load the image
|
|
|
|
| 398 |
- **RGB:** Standard format for visualization in libraries like `matplotlib`.
|
| 399 |
- **HSV:** Useful for color-based segmentation, as it separates color information from brightness.
|
| 400 |
""")
|
| 401 |
+
st.image("https://miro.medium.com/v2/resize:fit:1400/1*_uRqXYQQE9nvM7lOR0Psnw.png", caption="RGB to Gray", use_container_width=True)
|
| 402 |
|
| 403 |
# Header for Splitting Channels
|
| 404 |
st.header(":red[🔹 Splitting Color Channels in an Image]")
|