Update pages/Life_cycle_of_ML.py
Browse files
pages/Life_cycle_of_ML.py
CHANGED
|
@@ -515,8 +515,8 @@ def More():
|
|
| 515 |
""", language="python")
|
| 516 |
|
| 517 |
# Display color space conversions
|
| 518 |
-
st.image(grayscale_image, caption="Grayscale Image",
|
| 519 |
-
st.image(cv2.cvtColor(hsv_image, cv2.COLOR_HSV2RGB), caption="HSV Image"
|
| 520 |
|
| 521 |
st.code("""
|
| 522 |
# Display Grayscale and HSV Images
|
|
@@ -530,7 +530,7 @@ def More():
|
|
| 530 |
"Techniques include splitting color channels and manipulating them. Below, we split the image into Red, Green, and Blue channels."
|
| 531 |
)
|
| 532 |
b, g, r = cv2.split(image)
|
| 533 |
-
merged_image = cv2.merge((
|
| 534 |
|
| 535 |
st.code("""
|
| 536 |
# Split and Merge Channels
|
|
|
|
| 515 |
""", language="python")
|
| 516 |
|
| 517 |
# Display color space conversions
|
| 518 |
+
st.image(grayscale_image, caption="Grayscale Image", channels="GRAY")
|
| 519 |
+
st.image(cv2.cvtColor(hsv_image, cv2.COLOR_HSV2RGB), caption="HSV Image")
|
| 520 |
|
| 521 |
st.code("""
|
| 522 |
# Display Grayscale and HSV Images
|
|
|
|
| 530 |
"Techniques include splitting color channels and manipulating them. Below, we split the image into Red, Green, and Blue channels."
|
| 531 |
)
|
| 532 |
b, g, r = cv2.split(image)
|
| 533 |
+
merged_image = cv2.merge((b, g, r))
|
| 534 |
|
| 535 |
st.code("""
|
| 536 |
# Split and Merge Channels
|