Update pages/Life_cycle_of_ML.py
Browse files
pages/Life_cycle_of_ML.py
CHANGED
|
@@ -491,7 +491,7 @@ def More():
|
|
| 491 |
# Display the original image
|
| 492 |
st.subheader("1. What is an Image?")
|
| 493 |
st.write("An image is a grid of pixels. Each pixel holds color or intensity information. Here's your image!")
|
| 494 |
-
st.image(cv2.cvtColor(image, cv2.COLOR_BGR2RGB), caption="Original Image"
|
| 495 |
|
| 496 |
st.code("""
|
| 497 |
# Display the image
|
|
@@ -539,10 +539,10 @@ def More():
|
|
| 539 |
""", language="python")
|
| 540 |
|
| 541 |
# Display each channel and the manipulated image
|
| 542 |
-
st.image(b, caption="Blue Channel"
|
| 543 |
-
st.image(g, caption="Green Channel"
|
| 544 |
-
st.image(r, caption="Red Channel"
|
| 545 |
-
st.image(cv2.cvtColor(merged_image, cv2.COLOR_BGR2RGB), caption="Manipulated Image (Swapped Channels)"
|
| 546 |
|
| 547 |
st.code("""
|
| 548 |
# Display individual channels and manipulated image
|
|
|
|
| 491 |
# Display the original image
|
| 492 |
st.subheader("1. What is an Image?")
|
| 493 |
st.write("An image is a grid of pixels. Each pixel holds color or intensity information. Here's your image!")
|
| 494 |
+
st.image(cv2.cvtColor(image, cv2.COLOR_BGR2RGB), caption="Original Image")
|
| 495 |
|
| 496 |
st.code("""
|
| 497 |
# Display the image
|
|
|
|
| 539 |
""", language="python")
|
| 540 |
|
| 541 |
# Display each channel and the manipulated image
|
| 542 |
+
st.image(b, caption="Blue Channel")
|
| 543 |
+
st.image(g, caption="Green Channel")
|
| 544 |
+
st.image(r, caption="Red Channel")
|
| 545 |
+
st.image(cv2.cvtColor(merged_image, cv2.COLOR_BGR2RGB), caption="Manipulated Image (Swapped Channels)")
|
| 546 |
|
| 547 |
st.code("""
|
| 548 |
# Display individual channels and manipulated image
|