Yashvj123 commited on
Commit
b224953
·
verified ·
1 Parent(s): 7d8fb02

Update pages/3ML Project Life Cycle.py

Browse files
Files changed (1) hide show
  1. pages/3ML Project Life Cycle.py +16 -13
pages/3ML Project Life Cycle.py CHANGED
@@ -451,7 +451,7 @@ elif st.session_state.page == "image":
451
  st.write(
452
  "Light emitted from a source (e.g., the Sun) reflects off objects, creating an image. This phenomenon is known as reflection."
453
  )
454
- st.image("image/imageformation.png", caption="Reflection Diagram")
455
 
456
  # Section 2: Image Details
457
  st.header("Image Details")
@@ -529,7 +529,7 @@ elif st.session_state.page == "image":
529
  st.write("A representation technique that uses only two colors:")
530
  st.markdown("- **Black**: Represented by `0`")
531
  st.markdown("- **White**: Represented by `1`")
532
- st.image("image/black and white.png", caption="Black & White Color Space")
533
 
534
  # Grayscale Color Space
535
  st.subheader("2. Grayscale Color Space")
@@ -538,8 +538,8 @@ elif st.session_state.page == "image":
538
  st.markdown("- Pixel values range between `0` and `255`.")
539
  st.markdown("- It represents 0 for blacks, 1-254 shades of gray and 1 for whites.")
540
  st.markdown("- **Limitation**: Cannot preserve colored information.")
541
- st.image("image/grayscale.png", caption="Grayscale representation")
542
- st.image("image/grayscale image.jpg", caption="Grayscale Color Space")
543
 
544
 
545
 
@@ -550,9 +550,9 @@ elif st.session_state.page == "image":
550
  st.markdown("- An image is stored as a **3D array**, where each dimension represents a channel (R, G, B).")
551
  st.markdown("- Pixel values range between `0` and `255` for each channel.")
552
  st.write("By mixing these channels, any color can be formed.")
553
- st.image("image/channels.png", caption="Red Channel")
554
- st.image("image/rgb image1.png", caption="Green Channel")
555
- st.image("image/rgb image.png", caption="Blue Channel")
556
 
557
  st.markdown(
558
  """
@@ -589,6 +589,9 @@ elif st.session_state.page == "opencv":
589
 
590
  # Introduction
591
  st.header("What is OpenCV?")
 
 
 
592
  st.write("""
593
  OpenCV is a popular library in Python for image and video processing. It provides a wide range of tools to work with images, such as reading, displaying, manipulating, and saving images.
594
  The library supports tasks like:
@@ -596,7 +599,7 @@ elif st.session_state.page == "opencv":
596
  - Machine learning
597
  - Real-time processing
598
  """)
599
- #st.image("https://miro.medium.com/max/1400/1*dlOYi2Lnn-G3BNs1NAemFw.gif", caption="OpenCV Overview", use_container_width=True)
600
 
601
  st.markdown("---")
602
 
@@ -607,7 +610,7 @@ elif st.session_state.page == "opencv":
607
  - **Versatile**: It works seamlessly with images (2D arrays) and videos.
608
  - **Extensive Functionality**: OpenCV includes advanced features like object detection, image segmentation, and filtering.
609
  """)
610
- st.image("image/opencv.png", caption="OpenCV Logo", width=200)
611
 
612
  st.markdown("---")
613
 
@@ -700,7 +703,7 @@ elif st.session_state.page == "opencv":
700
  array = np.full((600, 500, 3), 128, dtype=np.uint8) # Grey image
701
  cv2.imwrite("white_image.jpg", array)
702
  """, language="python")
703
- st.image("image/gray.png", caption="Saving an Array as an Image")
704
 
705
  st.markdown("---")
706
 
@@ -770,7 +773,7 @@ cv2.waitKey(0)
770
  cv2.destroyAllWindows()
771
  """, language="python")
772
 
773
- st.image(r"image/colortogray.jpg", caption="Color Conversions: BGR to RGB and Grayscale")
774
 
775
  st.markdown("---")
776
 
@@ -793,7 +796,7 @@ cv2.imshow("Red Channel", r)
793
  cv2.waitKey(0)
794
  cv2.destroyAllWindows()
795
  """, language="python")
796
- st.image(r"image/bgr.png", caption="Splitting and Merging Channels in OpenCV")
797
 
798
  st.subheader("Example: Merging Channels")
799
  st.code("""
@@ -806,7 +809,7 @@ cv2.waitKey(0)
806
  cv2.destroyAllWindows()
807
  """, language="python")
808
 
809
- st.image(r"image/original.png", caption="Splitting and Merging Channels in OpenCV")
810
 
811
  st.markdown("---")
812
 
 
451
  st.write(
452
  "Light emitted from a source (e.g., the Sun) reflects off objects, creating an image. This phenomenon is known as reflection."
453
  )
454
+ st.image("image/reflection_image.png", caption="Reflection Diagram")
455
 
456
  # Section 2: Image Details
457
  st.header("Image Details")
 
529
  st.write("A representation technique that uses only two colors:")
530
  st.markdown("- **Black**: Represented by `0`")
531
  st.markdown("- **White**: Represented by `1`")
532
+ st.image("image/black_and_white_image.jpg", caption="Black & White Color Space")
533
 
534
  # Grayscale Color Space
535
  st.subheader("2. Grayscale Color Space")
 
538
  st.markdown("- Pixel values range between `0` and `255`.")
539
  st.markdown("- It represents 0 for blacks, 1-254 shades of gray and 1 for whites.")
540
  st.markdown("- **Limitation**: Cannot preserve colored information.")
541
+ st.image("image/black_and_white_color_space.jpg", caption="Grayscale representation")
542
+ st.image("image/greyscale.jpg", caption="Grayscale Color Space")
543
 
544
 
545
 
 
550
  st.markdown("- An image is stored as a **3D array**, where each dimension represents a channel (R, G, B).")
551
  st.markdown("- Pixel values range between `0` and `255` for each channel.")
552
  st.write("By mixing these channels, any color can be formed.")
553
+ st.image("image/rgb.jpg", caption="RGB Color Space")
554
+ st.image("image/rgb_pixel.jpg", caption="RGB Pixel Representation")
555
+ st.image("image/cat_rgb_splitting.jpeg", caption="RGB Representation")
556
 
557
  st.markdown(
558
  """
 
589
 
590
  # Introduction
591
  st.header("What is OpenCV?")
592
+
593
+ st.image("image/opencv_logo.png", caption="OpenCV Logo", width=200)
594
+
595
  st.write("""
596
  OpenCV is a popular library in Python for image and video processing. It provides a wide range of tools to work with images, such as reading, displaying, manipulating, and saving images.
597
  The library supports tasks like:
 
599
  - Machine learning
600
  - Real-time processing
601
  """)
602
+
603
 
604
  st.markdown("---")
605
 
 
610
  - **Versatile**: It works seamlessly with images (2D arrays) and videos.
611
  - **Extensive Functionality**: OpenCV includes advanced features like object detection, image segmentation, and filtering.
612
  """)
613
+
614
 
615
  st.markdown("---")
616
 
 
703
  array = np.full((600, 500, 3), 128, dtype=np.uint8) # Grey image
704
  cv2.imwrite("white_image.jpg", array)
705
  """, language="python")
706
+ st.image("image/image_gray.png", caption="Created an Image")
707
 
708
  st.markdown("---")
709
 
 
773
  cv2.destroyAllWindows()
774
  """, language="python")
775
 
776
+ st.image(r"image/color_to_gray.jpg", caption="Color Conversions: BGR to RGB and Grayscale")
777
 
778
  st.markdown("---")
779
 
 
796
  cv2.waitKey(0)
797
  cv2.destroyAllWindows()
798
  """, language="python")
799
+ st.image(r"image/splitting_RGB.jpg", caption="Splitting and Merging Channels in OpenCV")
800
 
801
  st.subheader("Example: Merging Channels")
802
  st.code("""
 
809
  cv2.destroyAllWindows()
810
  """, language="python")
811
 
812
+ st.image(r"image/Merging_RGB.jpg", caption="Splitting and Merging Channels in OpenCV")
813
 
814
  st.markdown("---")
815