LakshmiHarika commited on
Commit
1f3db4d
·
verified ·
1 Parent(s): 2eb103a

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +40 -28
pages/Data Collection.py CHANGED
@@ -346,38 +346,50 @@ elif st.session_state.current_page == "explore_images_video":
346
  st.pyplot(fig)
347
 
348
  st.write("""
349
- <div style="text-align: left; margin-top: 20px;">
350
- <h3 style="color: #5b2c6f;">What are Color Spaces?</h3>
351
- <p style="font-size: 16px; color: #333;">
352
- A <strong>color space</strong> is a technique used to represent the colors of an image in a numerical format. It allows us to preserve the color information while converting it into a form that machines can understand. Since machines cannot "see" images as humans do, they interpret numerical values. Therefore, color spaces are crucial for converting images into a format that can be processed by a machine.
353
- </p>
 
 
 
354
 
355
- <h4 style="color: #2a52be;">For Example: How Machine Learning Models Work With Images 🖼️</h4>
356
- <p style="font-size: 16px; color: #333;">
357
- Imagine you're building a machine learning model to classify images of dogs and cats. You provide the model with images, but since the machine cannot understand images directly, you need to convert them into numerical data. This is where color spaces play a vital role. They help convert the color information in the images into numbers that the machine can process, allowing it to learn from the data and make accurate predictions.
358
- </p>
 
 
 
359
 
360
- <h4 style="color: #5b2c6f;">Common Color Spaces</h4>
361
- <p style="font-size: 16px; color: #333;">
362
- Below are some common color spaces used in image processing:
363
- </p>
364
-
365
- <h5 style="color: #333;">1. Black and White</h5>
366
- <p style="font-size: 16px; color: #333;">
367
- This color space represents an image with just two colors—black and white. It is often used to simplify images by focusing on brightness or contrast, removing the color information.
368
- </p>
369
 
370
- <h5 style="color: #333;">2. Grayscale</h5>
371
- <p style="font-size: 16px; color: #333;">
372
- Grayscale images use different shades of gray to represent the colors in an image. It has 256 levels, ranging from black to white, with varying intensities of gray in between. This color space is often used in tasks where color is not essential.
373
- </p>
 
374
 
375
- <h5 style="color: #333;">3. Red, Green, Blue (RGB)</h5>
376
- <p style="font-size: 16px; color: #333;">
377
- RGB is one of the most common color spaces used in digital imaging. It represents colors by combining red, green, and blue light. Each channel has values between 0 and 255, and by mixing these three colors, we can create a wide range of colors.
378
- </p>
379
- </div>
380
- """, unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
 
381
 
382
 
383
 
 
346
  st.pyplot(fig)
347
 
348
  st.write("""
349
+ <div style="text-align: left; margin-top: 20px;">
350
+ <h3 style="color: #5b2c6f;">What are Color Spaces?</h3>
351
+ <p style="font-size: 16px; color: #333;">
352
+ A <strong>color space</strong> is a technique used to represent the colors of an image in a numerical format.
353
+ It allows us to preserve the color information while converting it into a form that machines can understand.
354
+ Since machines cannot "see" images as humans do, they interpret numerical values. Therefore, color spaces
355
+ are crucial for converting images into a format that can be processed by a machine.
356
+ </p>
357
 
358
+ <h4 style="color: #2a52be;">For Example: How Machine Learning Models Work With Images 🖼️</h4>
359
+ <p style="font-size: 16px; color: #333;">
360
+ Imagine you're building a machine learning model to classify images of dogs and cats. You provide the model with images,
361
+ but since the machine cannot understand images directly, you need to convert them into numerical data. This is where
362
+ color spaces play a vital role. They help convert the color information in the images into numbers that the machine
363
+ can process, allowing it to learn from the data and make accurate predictions.
364
+ </p>
365
 
366
+ <h4 style="color: #5b2c6f;">Common Color Spaces</h4>
367
+ <p style="font-size: 16px; color: #333;">
368
+ Below are some common color spaces used in image processing:
369
+ </p>
 
 
 
 
 
370
 
371
+ <h5 style="color: #333;">1. Black and White</h5>
372
+ <p style="font-size: 16px; color: #333;">
373
+ This color space represents an image with just two colors—black and white. It is often used to simplify images by
374
+ focusing on brightness or contrast, removing the color information.
375
+ </p>
376
 
377
+ <h5 style="color: #333;">2. Grayscale</h5>
378
+ <p style="font-size: 16px; color: #333;">
379
+ Grayscale images use different shades of gray to represent the colors in an image. It has 256 levels, ranging from
380
+ black to white, with varying intensities of gray in between. This color space is often used in tasks where color is
381
+ not essential.
382
+ </p>
383
+
384
+ <h5 style="color: #333;">3. Red, Green, Blue (RGB)</h5>
385
+ <p style="font-size: 16px; color: #333;">
386
+ RGB is one of the most common color spaces used in digital imaging. It represents colors by combining red, green,
387
+ and blue light. Each channel has values between 0 and 255, and by mixing these three colors, we can create a wide
388
+ range of colors.
389
+ </p>
390
+ </div>
391
+ """, unsafe_allow_html=True)
392
+
393
 
394
 
395