Phaneendrabayi commited on
Commit
69aa483
·
verified ·
1 Parent(s): d5e2017

Update pages/Life_cycle_of_ML.py

Browse files
Files changed (1) hide show
  1. pages/Life_cycle_of_ML.py +4 -4
pages/Life_cycle_of_ML.py CHANGED
@@ -460,12 +460,12 @@ def More():
460
  st.write("""
461
  ### Understanding Image Processing Concepts
462
  1. **What is an Image?**
463
- - An image is a digital representation of visual data stored as a grid of pixels. Each pixel contains color information, represented in formats like grayscale or RGB.
464
  - In machine learning, images are processed to extract meaningful features for tasks like object detection, recognition, and classification.
465
 
466
  2. **What is Meant by Color Spaces?**
467
  - Color spaces define the range and representation of colors in images. Common color spaces include:
468
- - **RGB** (Red, Green, Blue): Used for displaying images on screens.
469
  - **HSV** (Hue, Saturation, Value): Helpful for color segmentation.
470
  - **Grayscale**: Simplified representation with intensity levels.
471
 
@@ -501,7 +501,7 @@ def More():
501
  # Convert to Grayscale
502
  st.subheader("2. What is Meant by Color Spaces?")
503
  st.write(
504
- "Color spaces define how colors are represented. Common ones include RGB, Grayscale, and HSV. Let's see the image in different color spaces!"
505
  )
506
  grayscale_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
507
  hsv_image = cv2.cvtColor(image, cv2.COLOR_BGR2HSV)
@@ -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((b, g, r))
534
 
535
  st.code("""
536
  # Split and Merge Channels
 
460
  st.write("""
461
  ### Understanding Image Processing Concepts
462
  1. **What is an Image?**
463
+ - An image is a digital representation of visual data stored as a grid of pixels. Each pixel contains color information, represented in formats like grayscale or BGR.
464
  - In machine learning, images are processed to extract meaningful features for tasks like object detection, recognition, and classification.
465
 
466
  2. **What is Meant by Color Spaces?**
467
  - Color spaces define the range and representation of colors in images. Common color spaces include:
468
+ - **BGR** (Blue, Green, Red): Used for displaying images on screens.
469
  - **HSV** (Hue, Saturation, Value): Helpful for color segmentation.
470
  - **Grayscale**: Simplified representation with intensity levels.
471
 
 
501
  # Convert to Grayscale
502
  st.subheader("2. What is Meant by Color Spaces?")
503
  st.write(
504
+ "Color spaces define how colors are represented. Common ones include BGR, Grayscale, and HSV. Let's see the image in different color spaces!"
505
  )
506
  grayscale_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
507
  hsv_image = cv2.cvtColor(image, cv2.COLOR_BGR2HSV)
 
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