Phaneendrabayi commited on
Commit
44f5036
·
verified ·
1 Parent(s): 87febf9

Update pages/Life_cycle_of_ML.py

Browse files
Files changed (1) hide show
  1. pages/Life_cycle_of_ML.py +5 -5
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", use_column_width=True)
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", use_column_width=True, channels="GRAY")
543
- st.image(g, caption="Green Channel", use_column_width=True, channels="GRAY")
544
- st.image(r, caption="Red Channel", use_column_width=True, channels="GRAY")
545
- st.image(cv2.cvtColor(merged_image, cv2.COLOR_BGR2RGB), caption="Manipulated Image (Swapped Channels)", use_column_width=True)
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