LakshmiHarika commited on
Commit
8ed4e35
·
verified ·
1 Parent(s): db17eba

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +19 -13
pages/Data Collection.py CHANGED
@@ -345,16 +345,18 @@ elif st.session_state.current_page == "explore_images_video":
345
  # Display the plot
346
  st.pyplot(fig)
347
 
 
 
348
  # Section: What are Color Spaces?
349
  st.write("""
350
  <div style="text-align: left; margin-top: 20px;">
351
  <h3 style="color: #5b2c6f;">What are Color Spaces?</h3>
352
  <p style="font-size: 16px; color: #333;">
353
- A <strong>color space</strong> is a technique used to represent the colors of an image in a numerical format.
354
- It allows us to preserve the color information while converting it into a form that machines can understand.
355
- Since machines cannot "see" images as humans do, they interpret numerical values.
356
-
357
- Therefore, color spaces are crucial for converting images into a format that can be processed by a machine.
358
  </p>
359
  </div>
360
  """, unsafe_allow_html=True)
@@ -364,28 +366,32 @@ elif st.session_state.current_page == "explore_images_video":
364
  <div style="text-align: left; margin-top: 20px;">
365
  <h4 style="color: #e25822;">For Example:</h4>
366
  <p style="font-size: 16px; color: #333;">
367
- Imagine you're building a machine learning model to classify images of dogs and cats. You provide the model with images,
368
- but since the machine cannot understand images directly, you need to convert them into numerical data. This is where
369
- color spaces play a vital role. They help convert the color information in the images into numbers that the machine
370
- can process, allowing it to learn from the data and make accurate predictions.
 
 
371
  </p>
372
  </div>
373
  """, unsafe_allow_html=True)
374
 
 
375
  st.write("""
376
  <div style="text-align: left; margin-top: 20px;">
377
  <h4 style="color: #5b2c6f;">Common Color Spaces</h4>
378
  <p style="font-size: 16px; color: #333;">
379
- These are some of the common color spaces used in image processing:
380
  </p>
381
  <ol style="font-size: 16px; color: #333;">
382
- <li>Black and White</li>
383
- <li>Grayscale</li>
384
- <li>Red, Green, Blue (RGB)</li>
385
  </ol>
386
  </div>
387
  """, unsafe_allow_html=True)
388
 
 
389
  # Go Back Button
390
  if st.button("Go Back"):
391
  navigate_to("main")
 
345
  # Display the plot
346
  st.pyplot(fig)
347
 
348
+ import streamlit as st
349
+
350
  # Section: What are Color Spaces?
351
  st.write("""
352
  <div style="text-align: left; margin-top: 20px;">
353
  <h3 style="color: #5b2c6f;">What are Color Spaces?</h3>
354
  <p style="font-size: 16px; color: #333;">
355
+ A <strong>color space</strong> is a technique used to represent the <strong>colors of an image</strong> in a
356
+ numerical format. It allows us to preserve the <strong>color information</strong> while converting it into a
357
+ form that machines can understand. Since machines cannot <strong>"see"</strong> images as humans do, they interpret
358
+ <strong>numerical values</strong>. Therefore, color spaces are crucial for converting images into a format
359
+ that can be processed by a machine.
360
  </p>
361
  </div>
362
  """, unsafe_allow_html=True)
 
366
  <div style="text-align: left; margin-top: 20px;">
367
  <h4 style="color: #e25822;">For Example:</h4>
368
  <p style="font-size: 16px; color: #333;">
369
+ Imagine you're building a <strong>machine learning model</strong> to classify images of
370
+ <strong>dogs and cats</strong>. You provide the model with images, but since the machine cannot understand
371
+ images directly, you need to convert them into <strong>numerical data</strong>. This is where
372
+ <strong>color spaces</strong> play a vital role. They help convert the <strong>color information</strong> in
373
+ the images into numbers that the machine can process, allowing it to <strong>learn from the data</strong>
374
+ and make accurate predictions.
375
  </p>
376
  </div>
377
  """, unsafe_allow_html=True)
378
 
379
+ # Section: Common Color Spaces
380
  st.write("""
381
  <div style="text-align: left; margin-top: 20px;">
382
  <h4 style="color: #5b2c6f;">Common Color Spaces</h4>
383
  <p style="font-size: 16px; color: #333;">
384
+ These are some of the <strong>common color spaces</strong> used in <strong>image processing</strong>:
385
  </p>
386
  <ol style="font-size: 16px; color: #333;">
387
+ <li><strong>Black and White</strong></li>
388
+ <li><strong>Grayscale</strong></li>
389
+ <li><strong>Red, Green, Blue (RGB)</strong></li>
390
  </ol>
391
  </div>
392
  """, unsafe_allow_html=True)
393
 
394
+
395
  # Go Back Button
396
  if st.button("Go Back"):
397
  navigate_to("main")