Update pages/Life_cycle_of_ML.py
Browse files
pages/Life_cycle_of_ML.py
CHANGED
|
@@ -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
|
|
@@ -551,7 +551,7 @@ def More():
|
|
| 551 |
st.image(b_only, caption="Blue Channel Only")
|
| 552 |
st.image(g_only, caption="Green Channel Only")
|
| 553 |
st.image(r_only, caption="Red Channel Only")
|
| 554 |
-
st.image(cv2.cvtColor(merged_image, cv2.
|
| 555 |
|
| 556 |
st.code("""
|
| 557 |
# Display individual channels and manipulated image
|
|
|
|
| 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
|
|
|
|
| 551 |
st.image(b_only, caption="Blue Channel Only")
|
| 552 |
st.image(g_only, caption="Green Channel Only")
|
| 553 |
st.image(r_only, caption="Red Channel Only")
|
| 554 |
+
st.image(cv2.cvtColor(merged_image, cv2.COLOR_RGB2BGR), caption="Manipulated Image (Swapped Channels)")
|
| 555 |
|
| 556 |
st.code("""
|
| 557 |
# Display individual channels and manipulated image
|