LakshmiHarika commited on
Commit
efd6661
·
verified ·
1 Parent(s): e768754

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +3 -9
pages/Data Collection.py CHANGED
@@ -1,7 +1,7 @@
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(
@@ -261,8 +261,6 @@ elif st.session_state.current_page == "explore_excel":
261
  if st.button("Go Back"):
262
  navigate_to("main")
263
 
264
-
265
-
266
  elif st.session_state.current_page == "explore_images_video":
267
  st.markdown("""
268
  <h2 style="color: #BB3385;">Introduction to Images and Videos📸🖼️</h2>
@@ -276,7 +274,6 @@ elif st.session_state.current_page == "explore_images_video":
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>
@@ -290,7 +287,6 @@ elif st.session_state.current_page == "explore_images_video":
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.
@@ -306,9 +302,7 @@ elif st.session_state.current_page == "explore_images_video":
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
@@ -331,7 +325,7 @@ elif st.session_state.current_page == "explore_images_video":
331
  # Annotate the grid with pixel labels
332
  for i in range(height):
333
  for j in range(width):
334
- ax.text(j, i, f'{grid[i, j]:.2f}', ha='center', va='center', color='white', fontsize=6)
335
 
336
  # Set axis labels and title
337
  ax.set_title("Image as a Grid-Like Structure", fontsize=12)
 
1
  import streamlit as st
 
2
  import numpy as np
3
  import matplotlib.pyplot as plt
4
+ import pandas as pd
5
 
6
 
7
  st.set_page_config(
 
261
  if st.button("Go Back"):
262
  navigate_to("main")
263
 
 
 
264
  elif st.session_state.current_page == "explore_images_video":
265
  st.markdown("""
266
  <h2 style="color: #BB3385;">Introduction to Images and Videos📸🖼️</h2>
 
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.
 
277
  Common formats include JPEG, PNG, and BMP.
278
  </p>
279
  </div>
 
287
  A video is a collection of images, often referred to as frames, displayed one after another quickly
288
  to show continuous movement. Each frame captures a moment in time, and when these frames are played
289
  sequentially, they show continuous movement.
 
290
  Videos typically have a frame rate (e.g., 30 frames
291
  per second or 60 frames per second), which determines how many frames are displayed per second.
292
  Common video formats include MP4, AVI, and MOV.
 
302
  Images are called **grid-like structures** because they are composed of **pixels** arranged in rows and columns,
303
  forming a rectangular grid. Each pixel contains information about **shape**, **color**, and **patterns**, which
304
  together define the image's content.
305
+ The total number of pixels is determined by the image's height and width (resolution), and a higher resolution provides better clarity.
 
 
306
  </p>
307
  <p style="font-size: 16px; color: #333;">
308
  In images, **pixels act as features**, and the entire grid represents a single data point. This combination
 
325
  # Annotate the grid with pixel labels
326
  for i in range(height):
327
  for j in range(width):
328
+ ax.text(j, i, f'{grid[i, j]:.2f}', ha='center', va='center', color='white', fontsize=10)
329
 
330
  # Set axis labels and title
331
  ax.set_title("Image as a Grid-Like Structure", fontsize=12)