hari3485 commited on
Commit
08422b7
·
verified ·
1 Parent(s): fa40f07

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +7 -9
pages/Data Collection.py CHANGED
@@ -915,14 +915,14 @@ def image_details_page():
915
  # Unstructured Data - Video Page
916
  def video_details_page():
917
 
918
- st.markdown("<h1 style='color: blue;'>Unstructured Data - Video Details</h1>", unsafe_allow_html=True)
919
 
920
  # Title
921
- st.markdown("<h3 style='text-align: center; color: #FF0000;'>Understanding Video and Frame Rates</h3>", unsafe_allow_html=True)
922
 
923
 
924
  # Definition of Video
925
- st.markdown("<h3 style='text-align: center; color: #FF0000;'>What is video?</h3>", unsafe_allow_html=True)
926
 
927
 
928
  st.write("""
@@ -936,7 +936,7 @@ def video_details_page():
936
  The higher the number of frames per second, the smoother the video will look. Fewer frames per second can make the video appear less smooth or choppy.
937
  """)
938
 
939
- st.markdown("<h3 style='text-align: center; color: #FF0000;'>Understanding Video Processing with OpenCV</h3>", unsafe_allow_html=True)
940
 
941
  st.write("""
942
  **Load the Video**
@@ -976,7 +976,7 @@ def video_details_page():
976
 
977
  # Use st.markdown to display the explanation
978
 
979
- st.markdown("<h3 style='text-align: center; color: #FF0000;'>Understanding `vid.read()`</h3>", unsafe_allow_html=True)
980
 
981
 
982
  st.markdown("""
@@ -988,7 +988,7 @@ def video_details_page():
988
  2. **`img`**: The actual frame (image) from the video, which is in the form of a NumPy array. This image can then be processed just like any regular picture.
989
  """)
990
 
991
- st.markdown("<h3 style='text-align: center; color: #FF0000;'>Understanding `cv2.waitkey()`</h3>", unsafe_allow_html=True)
992
 
993
  st.markdown("""
994
 
@@ -1012,7 +1012,7 @@ def video_details_page():
1012
  break
1013
  """,language="python")
1014
 
1015
- st.markdown("<h3 style='text-align: center; color: #FF0000;'>Converting BGR Video to Grayscale</h3>", unsafe_allow_html=True)
1016
 
1017
 
1018
 
@@ -1143,7 +1143,6 @@ def video_details_page():
1143
  st.markdown("<h3 style='text-align: center; color: #ffa500;'>Dual Webcam Stream `Color vs Grayscale Capture`</h3>", unsafe_allow_html=True)
1144
 
1145
  st.markdown("""
1146
- # Opening Two Webcams: Original and Grayscale Video
1147
  - 1. The first webcam displays the original video feed from the camera.
1148
  - 2. The second webcam shows the same video feed, but converted to grayscale, where the color information is removed, leaving only varying shades of gray.
1149
  """)
@@ -1175,7 +1174,6 @@ def video_details_page():
1175
 
1176
 
1177
  st.markdown("""
1178
- # Split the Image into RGB Channels:
1179
  - The image captured by the webcam is divided into three parts: Red, Green, and Blue. This is done using `cv2.split()`
1180
  # Create Separate Channel Images:
1181
  - The separate Red, Green, and Blue images are then combined back into three full-color images using `cv2.merge()`.
 
915
  # Unstructured Data - Video Page
916
  def video_details_page():
917
 
918
+ st.title("Unstructured Data - Video Details")
919
 
920
  # Title
921
+ st.markdown("<h3 style='text-align: center; color: #9400d3;'>Understanding Video and Frame Rates</h3>", unsafe_allow_html=True)
922
 
923
 
924
  # Definition of Video
925
+ st.markdown("<h3 style='text-align: center; color: #9400d3;'>What is video?</h3>", unsafe_allow_html=True)
926
 
927
 
928
  st.write("""
 
936
  The higher the number of frames per second, the smoother the video will look. Fewer frames per second can make the video appear less smooth or choppy.
937
  """)
938
 
939
+ st.markdown("<h3 style='text-align: center; color: #9400d3;'>Understanding Video Processing with OpenCV</h3>", unsafe_allow_html=True)
940
 
941
  st.write("""
942
  **Load the Video**
 
976
 
977
  # Use st.markdown to display the explanation
978
 
979
+ st.markdown("<h3 style='text-align: center; color: #9400d3;'>Understanding `vid.read()`</h3>", unsafe_allow_html=True)
980
 
981
 
982
  st.markdown("""
 
988
  2. **`img`**: The actual frame (image) from the video, which is in the form of a NumPy array. This image can then be processed just like any regular picture.
989
  """)
990
 
991
+ st.markdown("<h3 style='text-align: center; color: #9400d3;'>Understanding `cv2.waitkey()`</h3>", unsafe_allow_html=True)
992
 
993
  st.markdown("""
994
 
 
1012
  break
1013
  """,language="python")
1014
 
1015
+ st.markdown("<h3 style='text-align: center; color: #FF00FF;'>Converting BGR Video to Grayscale</h3>", unsafe_allow_html=True)
1016
 
1017
 
1018
 
 
1143
  st.markdown("<h3 style='text-align: center; color: #ffa500;'>Dual Webcam Stream `Color vs Grayscale Capture`</h3>", unsafe_allow_html=True)
1144
 
1145
  st.markdown("""
 
1146
  - 1. The first webcam displays the original video feed from the camera.
1147
  - 2. The second webcam shows the same video feed, but converted to grayscale, where the color information is removed, leaving only varying shades of gray.
1148
  """)
 
1174
 
1175
 
1176
  st.markdown("""
 
1177
  - The image captured by the webcam is divided into three parts: Red, Green, and Blue. This is done using `cv2.split()`
1178
  # Create Separate Channel Images:
1179
  - The separate Red, Green, and Blue images are then combined back into three full-color images using `cv2.merge()`.