Sathwikchowdary commited on
Commit
20705ee
·
verified ·
1 Parent(s): 8ae4b4e

Update pages/Info _of_Image.py

Browse files
Files changed (1) hide show
  1. pages/Info _of_Image.py +23 -47
pages/Info _of_Image.py CHANGED
@@ -116,40 +116,40 @@ 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
@@ -157,7 +157,7 @@ with col1:
157
  st.markdown("<h3 style='text-align: left; color: Black;'>splitting and merging the image colours </h3>", unsafe_allow_html=True)
158
  st.markdown("<h4 style='text-align: left; color: Black;'>cv2.cvtColor() & cv2.split() </h4>", unsafe_allow_html=True)
159
  st.markdown(
160
- "<p style='font-size: 16px; color: White; font-style: italic;'>"
161
  "This function is used to convert images from one color space to another. You can convert from RGB to Grayscale, RGB to HSV, and many other color spaces."
162
  "This function splits a color image into its individual channels (e.g., Blue, Green, Red for RGB images)."
163
  "</p>",
@@ -167,44 +167,20 @@ with col1:
167
  if st.button("Video"):
168
  st.markdown("<h2 style='text-align: left; color: Black;'>What is Video</h2>", unsafe_allow_html=True)
169
  st.markdown(
170
- "<p style='font-size: 16px; color: White; font-style: italic;'>"
171
- "A video is a series of images (called frames) displayed sequentially at a certain speed, or frame rate, to create the illusion of motion. Videos can be captured through cameras, created by animation software, or generated from other digital sources."
172
- "</p>",
173
  unsafe_allow_html=True
174
  )
175
  st.markdown("<h2 style='text-align: left; color: Black;'>Converting Images into Videos</h2>", unsafe_allow_html=True)
176
  st.markdown(
177
- "<p style='font-size: 16px; color: White; font-style: italic;'>"
178
  "Converting images into a video involves displaying a sequence of images (frames) in rapid succession to create the effect of motion. The key steps include"
179
- "</p>",
180
  unsafe_allow_html=True
181
  )
182
  st.markdown(
183
- "<p style='font-size: 16px; color: White; font-style: italic;'>"
184
  "Frame Rate: The number of frames shown per second (fps). Standard rates include 24 fps for cinema, 30 fps for TV, and 60 fps for high-definition videos."
185
  "Resolution: The size of each frame (e.g., 1920x1080 pixels). All frames in a video must have the same resolution."
186
- "Encoding: After the frames are generated, they are encoded into a video file format (e.g., MP4, AVI, etc.) using a codec (e.g., H.264)."
187
- "This process makes the images appear as continuous motion, a crucial component of video creation."
188
- "</p>",
189
- unsafe_allow_html=True
190
- )
191
- if st.button("Affline Methods"):
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
- # Add a link to the code
204
- st.markdown(
205
- "<p style='font-size: 16px; color: White;'>"
206
- "You can view and run the code in Colab: "
207
- "<a href='https://colab.research.google.com/drive/1fvP-k70HJnp1iCN7Vs-tkfFs8vq--WGc?usp=sharing' target='_blank' style='color: #FFD700;'>Colab Notebook</a>"
208
- "</p>",
209
- unsafe_allow_html=True
210
- )
 
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. 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
 
157
  st.markdown("<h3 style='text-align: left; color: Black;'>splitting and merging the image colours </h3>", unsafe_allow_html=True)
158
  st.markdown("<h4 style='text-align: left; color: Black;'>cv2.cvtColor() & cv2.split() </h4>", unsafe_allow_html=True)
159
  st.markdown(
160
+ "<p style='font-size: 16px; color: White; font-style: italic;'>"
161
  "This function is used to convert images from one color space to another. You can convert from RGB to Grayscale, RGB to HSV, and many other color spaces."
162
  "This function splits a color image into its individual channels (e.g., Blue, Green, Red for RGB images)."
163
  "</p>",
 
167
  if st.button("Video"):
168
  st.markdown("<h2 style='text-align: left; color: Black;'>What is Video</h2>", unsafe_allow_html=True)
169
  st.markdown(
170
+ "<p style='font-size: 16px; color: White; font-style: italic;'>"
171
+ "A video is a series of images (called frames) displayed sequentially at a certain speed, or frame rate, to create the illusion of motion. Videos can be captured through cameras, created by animation software, or generated from other digital sources."
172
+ "</p>",
173
  unsafe_allow_html=True
174
  )
175
  st.markdown("<h2 style='text-align: left; color: Black;'>Converting Images into Videos</h2>", unsafe_allow_html=True)
176
  st.markdown(
177
+ "<p style='font-size: 16px; color: White; font-style: italic;'>"
178
  "Converting images into a video involves displaying a sequence of images (frames) in rapid succession to create the effect of motion. The key steps include"
179
+ "</p>",
180
  unsafe_allow_html=True
181
  )
182
  st.markdown(
183
+ "<p style='font-size: 16px; color: White; font-style: italic;'>"
184
  "Frame Rate: The number of frames shown per second (fps). Standard rates include 24 fps for cinema, 30 fps for TV, and 60 fps for high-definition videos."
185
  "Resolution: The size of each frame (e.g., 1920x1080 pixels). All frames in a video must have the same resolution."
186
+ "Encoding: