Phaneendrabayi commited on
Commit
b3e292f
·
verified ·
1 Parent(s): 46d4768

Update pages/Life_cycle_of_ML.py

Browse files
Files changed (1) hide show
  1. pages/Life_cycle_of_ML.py +4 -1
pages/Life_cycle_of_ML.py CHANGED
@@ -554,12 +554,15 @@ def More():
554
 
555
  # Set the blue and green channels to zero to keep only the red channel
556
  r_only = cv2.merge((b*0, g*0, r))
 
 
557
 
558
  # Display the individual channels and manipulated images
559
  st.image(b_only, caption="Red Channel Only")
560
  st.image(g_only, caption="Green Channel Only")
561
  st.image(r_only, caption="Blue Channel Only")
562
- st.image(cv2.cvtColor(merged_image, cv2.COLOR_RGB2BGR) , caption = "Color Convertion")
 
563
 
564
  st.code("""
565
  # Display individual channels and manipulated image
 
554
 
555
  # Set the blue and green channels to zero to keep only the red channel
556
  r_only = cv2.merge((b*0, g*0, r))
557
+
558
+ merged_image_rgb = cv2.cvtColor(merged_image, cv2.COLOR_BGR2RGB)
559
 
560
  # Display the individual channels and manipulated images
561
  st.image(b_only, caption="Red Channel Only")
562
  st.image(g_only, caption="Green Channel Only")
563
  st.image(r_only, caption="Blue Channel Only")
564
+
565
+ st.image(merged_image_rgb, caption="Merged Image (RGB to BGR)")
566
 
567
  st.code("""
568
  # Display individual channels and manipulated image