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

Update pages/Life_cycle_of_ML.py

Browse files
Files changed (1) hide show
  1. pages/Life_cycle_of_ML.py +3 -3
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", use_column_width=True, channels="GRAY")
519
- st.image(cv2.cvtColor(hsv_image, cv2.COLOR_HSV2RGB), caption="HSV Image", use_column_width=True)
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((r, g, b))
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