ronakreddy18 commited on
Commit
7d30b60
·
verified ·
1 Parent(s): d5a490e

Update pages/LIFE_CYCLE_OF_MACHINE_LEARNING.py

Browse files
pages/LIFE_CYCLE_OF_MACHINE_LEARNING.py CHANGED
@@ -610,18 +610,18 @@ def Video_capture_and_explanation_page():
610
 
611
  ###------KEY POINTS -----###
612
 
613
- st.markdown("""
614
-
615
  1. **Video Capture (`cv2.VideoCapture`)**: Opens and reads video either from the webcam or from a video file.
616
  - **Method `cap.read()`**: Captures individual frames from the video source.
617
  - **Releasing the capture (`cap.release()`)**: Ensures that the resources are freed once done.
618
-
619
  2. **Key Handling (`cv2.waitKey`)**: Waits for user key input and processes it:
620
  - **`cv2.waitKey(1)`**: Checks for key presses every 1 millisecond.
621
  - **Exiting the loop**: Pressing the `'q'` key exits the video capture loop.
622
 
623
  This explanation provides both the purpose and practical use cases of `cv2.VideoCapture()` and `cv2.waitKey()` in video capture scenarios, including how the two work together to display video and handle key events effectively.
624
- """)
 
625
 
626
  # Navigation Button
627
  if st.button("Affine Transformation Matrix"):
 
610
 
611
  ###------KEY POINTS -----###
612
 
613
+ st.markdown("""
 
614
  1. **Video Capture (`cv2.VideoCapture`)**: Opens and reads video either from the webcam or from a video file.
615
  - **Method `cap.read()`**: Captures individual frames from the video source.
616
  - **Releasing the capture (`cap.release()`)**: Ensures that the resources are freed once done.
617
+
618
  2. **Key Handling (`cv2.waitKey`)**: Waits for user key input and processes it:
619
  - **`cv2.waitKey(1)`**: Checks for key presses every 1 millisecond.
620
  - **Exiting the loop**: Pressing the `'q'` key exits the video capture loop.
621
 
622
  This explanation provides both the purpose and practical use cases of `cv2.VideoCapture()` and `cv2.waitKey()` in video capture scenarios, including how the two work together to display video and handle key events effectively.
623
+ """)
624
+
625
 
626
  # Navigation Button
627
  if st.button("Affine Transformation Matrix"):