LakshmiHarika commited on
Commit
dafd1b1
·
verified ·
1 Parent(s): 46a8214

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +14 -6
pages/Data Collection.py CHANGED
@@ -1,6 +1,8 @@
1
  import streamlit as st
2
  import pandas as pd
3
  import numpy as np
 
 
4
 
5
  st.set_page_config(
6
  page_title="HomePage",
@@ -273,7 +275,9 @@ elif st.session_state.current_page == "explore_images_video":
273
  <p style="font-size: 16px; color: #333;">
274
  An image is a two-dimensional representation of the visible light spectrum, often captured
275
  using devices like cameras or scanners. It can store details such as colors, shapes, and textures,
276
- enabling us to visually interpret and analyze information. Common formats include JPEG, PNG, and BMP.
 
 
277
  </p>
278
  </div>
279
  """, unsafe_allow_html=True)
@@ -285,7 +289,9 @@ elif st.session_state.current_page == "explore_images_video":
285
  <p style="font-size: 16px; color: #333;">
286
  A video is a collection of images, often referred to as frames, displayed one after another quickly
287
  to show continuous movement. Each frame captures a moment in time, and when these frames are played
288
- sequentially, they show continuous movement. Videos typically have a frame rate (e.g., 30 frames
 
 
289
  per second or 60 frames per second), which determines how many frames are displayed per second.
290
  Common video formats include MP4, AVI, and MOV.
291
  </p>
@@ -297,13 +303,15 @@ elif st.session_state.current_page == "explore_images_video":
297
  <div style="text-align: left; margin-top: 20px;">
298
  <h3 style="color: #5b2c6f;">Why is an Image Called a Grid-Like Structure?🔲✨</h3>
299
  <p style="font-size: 16px; color: #333;">
300
- Images are called grid-like structures because they are composed of pixels arranged in rows and columns,
301
- forming a rectangular grid. Each pixel contains information about shape, color, and patterns, which
302
- together define the image's content. The total number of pixels is determined by the image's height
 
 
303
  and width (resolution), and a higher resolution provides better clarity.
304
  </p>
305
  <p style="font-size: 16px; color: #333;">
306
- In images, pixels act as features, and the entire grid represents a single data point. This combination
307
  of features and data points gives images their grid-like nature.
308
  </p>
309
  <p style="font-size: 16px; color: #333;">
 
1
  import streamlit as st
2
  import pandas as pd
3
  import numpy as np
4
+ import matplotlib.pyplot as plt
5
+
6
 
7
  st.set_page_config(
8
  page_title="HomePage",
 
275
  <p style="font-size: 16px; color: #333;">
276
  An image is a two-dimensional representation of the visible light spectrum, often captured
277
  using devices like cameras or scanners. It can store details such as colors, shapes, and textures,
278
+ enabling us to visually interpret and analyze information.
279
+
280
+ Common formats include JPEG, PNG, and BMP.
281
  </p>
282
  </div>
283
  """, unsafe_allow_html=True)
 
289
  <p style="font-size: 16px; color: #333;">
290
  A video is a collection of images, often referred to as frames, displayed one after another quickly
291
  to show continuous movement. Each frame captures a moment in time, and when these frames are played
292
+ sequentially, they show continuous movement.
293
+
294
+ Videos typically have a frame rate (e.g., 30 frames
295
  per second or 60 frames per second), which determines how many frames are displayed per second.
296
  Common video formats include MP4, AVI, and MOV.
297
  </p>
 
303
  <div style="text-align: left; margin-top: 20px;">
304
  <h3 style="color: #5b2c6f;">Why is an Image Called a Grid-Like Structure?🔲✨</h3>
305
  <p style="font-size: 16px; color: #333;">
306
+ Images are called **grid-like structures** because they are composed of **pixels** arranged in rows and columns,
307
+ forming a rectangular grid. Each pixel contains information about **shape**, **color**, and **patterns**, which
308
+ together define the image's content.
309
+
310
+ The total number of pixels is determined by the image's height
311
  and width (resolution), and a higher resolution provides better clarity.
312
  </p>
313
  <p style="font-size: 16px; color: #333;">
314
+ In images, **pixels act as features**, and the entire grid represents a single data point. This combination
315
  of features and data points gives images their grid-like nature.
316
  </p>
317
  <p style="font-size: 16px; color: #333;">