Sathwikchowdary commited on
Commit
e6f9a5f
·
verified ·
1 Parent(s): 0995893

Update pages/Info _of_Image.py

Browse files
Files changed (1) hide show
  1. pages/Info _of_Image.py +47 -2
pages/Info _of_Image.py CHANGED
@@ -114,8 +114,53 @@ col1, col2, col3 = st.columns(3)
114
 
115
  with col1:
116
  if st.button("Color Space"):
117
- if st.switch_page("sub_pages/Colorspace"): # Added the missing colon
118
- pass # Add any actions you want to perform when the button is pressed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
 
120
  # Add a link to the code
121
  st.markdown(
 
114
 
115
  with col1:
116
  if st.button("Color Space"):
117
+ st.markdown("<h2 style='text-align: left; color: Black;'>What is Colour Space?</h2>", unsafe_allow_html=True)
118
+ st.markdown(
119
+ "<p style='font-size: 16px; color: White; font-style: italic;'>"
120
+ "Color space refers to the specific organization of colors, which helps in the reproduction of color in both physical and digital environments. Common color spaces include RGB, CMYK, and HSV.Common color spaces include RGB, CMYK, and HSV. Each color space has different uses and is based on distinct principles:"
121
+ "</p>",
122
+ unsafe_allow_html=True
123
+ )
124
+ st.markdown("<h3 style='text-align: left; color: Black;'>RGB (Red, Green, Blue): </h3>", unsafe_allow_html=True)
125
+ st.markdown(
126
+ "<p style='font-size: 16px; color: White; font-style: italic;'>"
127
+ "This color model is based on the way human vision perceives light. In RGB, colors are created by combining different intensities of red, green, and blue light. It is primarily used for screens and digital displays like monitors and televisions."
128
+ "</p>",
129
+ unsafe_allow_html=True
130
+ )
131
+ st.markdown(
132
+ "<p style='font-size: 16px; color: White; font-style: italic;'>"
133
+ "we use cv2.cvtColor() to convert the image from RGB (or BGR in OpenCV) to Grayscale."
134
+ "</p>",
135
+ unsafe_allow_html=True
136
+ )
137
+ st.markdown("<h3 style='text-align: left; color: Black;'>CMYK (Cyan, Magenta, Yellow, Key/Black): </h3>", unsafe_allow_html=True)
138
+ st.markdown(
139
+ "<p style='font-size: 16px; color: White; font-style: italic;'>"
140
+ "The CMYK color space is used in color printing. It relies on the subtractive model, where colors are created by subtracting light through layers of ink. When combined in various proportions, CMYK creates a wide range of colors."
141
+ "</p>",
142
+ unsafe_allow_html=True
143
+ )
144
+ st.markdown("<h3 style='text-align: left; color: Black;'>HSV (Hue, Saturation, Value): : </h3>", unsafe_allow_html=True)
145
+ st.markdown(
146
+ "<p style='font-size: 16px; color: White; font-style: italic;'>"
147
+ "This model is often used in graphic design and image processing, as it aligns more closely with how humans perceive color. It allows for easier manipulation of color through hue (the type of color), saturation (the intensity), and value (brightness)."
148
+ "</p>",
149
+ unsafe_allow_html=True
150
+ )
151
+ st.markdown(
152
+ "<p style='font-size: 16px; color: White; font-style: italic;'>"
153
+ "Each color space is suited for different applications, depending on the medium and technology used. Choosing the correct color space is crucial for ensuring that colors appear as intended, whether you're working with digital graphics, web design, or printed materials."
154
+ "</p>",
155
+ unsafe_allow_html=True
156
+ )
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
 
165
  # Add a link to the code
166
  st.markdown(