LakshmiHarika commited on
Commit
8dec176
·
verified ·
1 Parent(s): 7dd1c75

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +12 -0
pages/Data Collection.py CHANGED
@@ -808,6 +808,10 @@ elif st.session_state.current_page == "image_operations":
808
  cv2.destroyAllWindows() # Close all OpenCV windows
809
  """, language="python")
810
 
 
 
 
 
811
  # Heading for Splitting Channels
812
  st.markdown("""
813
  <h3 style="color: #e25822;">Splitting Channels</h3>
@@ -853,6 +857,10 @@ elif st.session_state.current_page == "image_operations":
853
  cv2.waitKey(0)
854
  cv2.destroyAllWindows()""", language="python")
855
 
 
 
 
 
856
  st.write("Once you upload an image, it will be split into its color channels (Blue, Green, and Red), with each channel displayed separately. You can then download the processed image.")
857
 
858
  # Allow user to upload an image
@@ -911,6 +919,10 @@ elif st.session_state.current_page == "image_operations":
911
  # Converting an RGB image to Grayscale
912
  gray_img = cv2.cvtColor(rgb_image, cv2.COLOR_BGR2GRAY)""", language="python") # Convert from BGR to Grayscale
913
 
 
 
 
 
914
 
915
  st.write("""
916
  In the next section, we will dive into **video processing using OpenCV**. We will explore how to:
 
808
  cv2.destroyAllWindows() # Close all OpenCV windows
809
  """, language="python")
810
 
811
+ st.image(
812
+ "https://huggingface.co/spaces/LakshmiHarika/MachineLearning/resolve/main/Images/Merging%20rgb.png",
813
+ use_container_width=True)
814
+
815
  # Heading for Splitting Channels
816
  st.markdown("""
817
  <h3 style="color: #e25822;">Splitting Channels</h3>
 
857
  cv2.waitKey(0)
858
  cv2.destroyAllWindows()""", language="python")
859
 
860
+ st.image(
861
+ "https://huggingface.co/spaces/LakshmiHarika/MachineLearning/resolve/main/Images/splitting_rgb_img.png",
862
+ use_container_width=True)
863
+
864
  st.write("Once you upload an image, it will be split into its color channels (Blue, Green, and Red), with each channel displayed separately. You can then download the processed image.")
865
 
866
  # Allow user to upload an image
 
919
  # Converting an RGB image to Grayscale
920
  gray_img = cv2.cvtColor(rgb_image, cv2.COLOR_BGR2GRAY)""", language="python") # Convert from BGR to Grayscale
921
 
922
+ st.image(
923
+ "https://huggingface.co/spaces/LakshmiHarika/MachineLearning/resolve/main/Images/rgb_to_grayscale.png",
924
+ use_container_width=True)
925
+
926
 
927
  st.write("""
928
  In the next section, we will dive into **video processing using OpenCV**. We will explore how to: