Spaces:
Running
Running
Sathwikchowdary
commited on
Commit
•
e8d8800
1
Parent(s):
515e3af
Update pages/Info_of_Video.py
Browse files- pages/Info_of_Video.py +21 -1
pages/Info_of_Video.py
CHANGED
@@ -87,9 +87,29 @@ st.markdown("<h2 style='text-align: left; color: Black;'>Steps to Access Webcam:
|
|
87 |
st.markdown(
|
88 |
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
89 |
"Import OpenCV: Ensure OpenCV is installed (pip install opencv-python) and import it."
|
|
|
|
|
|
|
|
|
|
|
90 |
"Initialize Webcam: Use cv2.VideoCapture(0) to access the default webcam (replace 0 with the device index for other cameras)."
|
91 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
"Display Frames: Use cv2.imshow() to view the frames in a window."
|
|
|
|
|
|
|
|
|
|
|
93 |
"Close Webcam: Release the webcam and close all OpenCV windows using cv2.VideoCapture.release() and cv2.destroyAllWindows()."
|
94 |
"</p>",
|
95 |
unsafe_allow_html=True
|
|
|
87 |
st.markdown(
|
88 |
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
89 |
"Import OpenCV: Ensure OpenCV is installed (pip install opencv-python) and import it."
|
90 |
+
"</p>",
|
91 |
+
unsafe_allow_html=True
|
92 |
+
)
|
93 |
+
st.markdown(
|
94 |
+
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
95 |
"Initialize Webcam: Use cv2.VideoCapture(0) to access the default webcam (replace 0 with the device index for other cameras)."
|
96 |
+
"</p>",
|
97 |
+
unsafe_allow_html=True
|
98 |
+
)
|
99 |
+
st.markdown(
|
100 |
+
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
101 |
+
"Read Frames: Use read() method to grab individual frames from the webcam feed."
|
102 |
+
"</p>",
|
103 |
+
unsafe_allow_html=True
|
104 |
+
)
|
105 |
+
st.markdown(
|
106 |
+
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
107 |
"Display Frames: Use cv2.imshow() to view the frames in a window."
|
108 |
+
"</p>",
|
109 |
+
unsafe_allow_html=True
|
110 |
+
)
|
111 |
+
st.markdown(
|
112 |
+
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
113 |
"Close Webcam: Release the webcam and close all OpenCV windows using cv2.VideoCapture.release() and cv2.destroyAllWindows()."
|
114 |
"</p>",
|
115 |
unsafe_allow_html=True
|