Spaces:
Build error
Build error
Update pages/LIFE_CYCLE_OF_MACHINE_LEARNING.py
Browse files
pages/LIFE_CYCLE_OF_MACHINE_LEARNING.py
CHANGED
|
@@ -149,6 +149,7 @@ def unstructured_data_page():
|
|
| 149 |
if st.button("Introduction to Image"):
|
| 150 |
st.session_state.page = "introduction_to_image"
|
| 151 |
|
|
|
|
| 152 |
def introduction_to_image_page():
|
| 153 |
st.header("🖼️ What is Image")
|
| 154 |
st.markdown("""
|
|
@@ -207,7 +208,7 @@ plt.axis('off')
|
|
| 207 |
plt.show()
|
| 208 |
""", language='python')
|
| 209 |
|
| 210 |
-
st.header("Color Spaces in Machine Learning")
|
| 211 |
st.markdown("""
|
| 212 |
A color space is a mathematical model for representing colors. In machine learning, different color spaces can be used for preprocessing and analyzing image data, depending on the task.
|
| 213 |
|
|
@@ -222,13 +223,14 @@ Common Color Spaces:
|
|
| 222 |
- **Use Cases**: Color correction, image processing tasks requiring color consistency.
|
| 223 |
""")
|
| 224 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 225 |
# Navigation Button
|
| 226 |
if st.button("Back to Data Collection"):
|
| 227 |
st.session_state.page = "data_collection"
|
| 228 |
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
# ----------------- Semi-Structured Data Page -----------------
|
| 233 |
def semi_structured_data_page():
|
| 234 |
st.title(":orange[Semi-Structured Data]")
|
|
@@ -313,6 +315,7 @@ def main():
|
|
| 313 |
json_page()
|
| 314 |
elif page == "introduction_to_image":
|
| 315 |
introduction_to_image_page()
|
| 316 |
-
|
|
|
|
| 317 |
if __name__ == "__main__":
|
| 318 |
main()
|
|
|
|
| 149 |
if st.button("Introduction to Image"):
|
| 150 |
st.session_state.page = "introduction_to_image"
|
| 151 |
|
| 152 |
+
# ----------------- Introduction to Image -----------------
|
| 153 |
def introduction_to_image_page():
|
| 154 |
st.header("🖼️ What is Image")
|
| 155 |
st.markdown("""
|
|
|
|
| 208 |
plt.show()
|
| 209 |
""", language='python')
|
| 210 |
|
| 211 |
+
st.header("Color Spaces in Machine Learning")
|
| 212 |
st.markdown("""
|
| 213 |
A color space is a mathematical model for representing colors. In machine learning, different color spaces can be used for preprocessing and analyzing image data, depending on the task.
|
| 214 |
|
|
|
|
| 223 |
- **Use Cases**: Color correction, image processing tasks requiring color consistency.
|
| 224 |
""")
|
| 225 |
|
| 226 |
+
# Button to Navigate to Operations Using OpenCV
|
| 227 |
+
if st.button("Operations Using OpenCV"):
|
| 228 |
+
st.session_state.page = "operations_using_opencv"
|
| 229 |
+
|
| 230 |
# Navigation Button
|
| 231 |
if st.button("Back to Data Collection"):
|
| 232 |
st.session_state.page = "data_collection"
|
| 233 |
|
|
|
|
|
|
|
|
|
|
| 234 |
# ----------------- Semi-Structured Data Page -----------------
|
| 235 |
def semi_structured_data_page():
|
| 236 |
st.title(":orange[Semi-Structured Data]")
|
|
|
|
| 315 |
json_page()
|
| 316 |
elif page == "introduction_to_image":
|
| 317 |
introduction_to_image_page()
|
| 318 |
+
elif page == "operations_using_opencv"
|
| 319 |
+
operations_using_opencv_page()
|
| 320 |
if __name__ == "__main__":
|
| 321 |
main()
|