Spaces:
Sleeping
Sleeping
Update pages/Data Collection.py
Browse files- pages/Data Collection.py +38 -1
pages/Data Collection.py
CHANGED
|
@@ -494,7 +494,7 @@ elif st.session_state.current_page == "explore_images_video":
|
|
| 494 |
elif st.session_state.current_page == "opencv_operations":
|
| 495 |
# Introduction to OpenCV Page
|
| 496 |
st.markdown("""
|
| 497 |
-
<h2 style="color: #BB3385;">Introduction to OpenCV</h2>
|
| 498 |
""", unsafe_allow_html=True)
|
| 499 |
|
| 500 |
# Informative Content
|
|
@@ -505,6 +505,43 @@ elif st.session_state.current_page == "opencv_operations":
|
|
| 505 |
- OpenCV allows us to work with both **images and videos**, making it a versatile tool for various computer vision applications.
|
| 506 |
""")
|
| 507 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 508 |
|
| 509 |
|
| 510 |
|
|
|
|
| 494 |
elif st.session_state.current_page == "opencv_operations":
|
| 495 |
# Introduction to OpenCV Page
|
| 496 |
st.markdown("""
|
| 497 |
+
<h2 style="color: #BB3385;">Introduction to OpenCV(Open Source Computer Vision Library)</h2>
|
| 498 |
""", unsafe_allow_html=True)
|
| 499 |
|
| 500 |
# Informative Content
|
|
|
|
| 505 |
- OpenCV allows us to work with both **images and videos**, making it a versatile tool for various computer vision applications.
|
| 506 |
""")
|
| 507 |
|
| 508 |
+
# What is OpenCV Section
|
| 509 |
+
st.markdown("""
|
| 510 |
+
<h2 style="color: #BB3385;">What is OpenCV?</h2>
|
| 511 |
+
""", unsafe_allow_html=True)
|
| 512 |
+
|
| 513 |
+
st.write("""
|
| 514 |
+
OpenCV, short for **Open Source Computer Vision Library**, is a popular open-source library designed for real-time computer vision and image processing tasks.
|
| 515 |
+
|
| 516 |
+
### Key Points:
|
| 517 |
+
- **Purpose**: OpenCV helps provide artificial vision to machines, enabling them to understand and process visual information like images and videos.
|
| 518 |
+
- **Features**: OpenCV allows you to work with images and videos for tasks like transformation, filtering, and enhancement. It also supports real-time processing, making it ideal for dynamic applications.
|
| 519 |
+
- **Applications**: Commonly used in tasks such as image recognition, motion detection, video analytics, and robotics.
|
| 520 |
+
|
| 521 |
+
OpenCV is cross-platform, free to use, and designed for high performance, making it an essential tool for computer vision projects.
|
| 522 |
+
""")
|
| 523 |
+
|
| 524 |
+
# Installing OpenCV Section
|
| 525 |
+
st.markdown("""
|
| 526 |
+
<h2 style="color: #BB3385;">Installing OpenCV</h2>
|
| 527 |
+
""", unsafe_allow_html=True)
|
| 528 |
+
|
| 529 |
+
st.write("""
|
| 530 |
+
To start working with OpenCV, you need to install it in your Python environment. Here’s how:
|
| 531 |
+
""")
|
| 532 |
+
|
| 533 |
+
st.write("1. Install OpenCV using pip:")
|
| 534 |
+
st.code("pip install opencv-python", language="bash")
|
| 535 |
+
|
| 536 |
+
st.write("2. Import OpenCV in your Python script:")
|
| 537 |
+
st.code("""
|
| 538 |
+
import cv2
|
| 539 |
+
print(cv2.__version__) # This will display the installed OpenCV version
|
| 540 |
+
""", language="python")
|
| 541 |
+
|
| 542 |
+
|
| 543 |
+
|
| 544 |
+
|
| 545 |
|
| 546 |
|
| 547 |
|