Spaces:
Sleeping
Sleeping
Update pages/3_Life Cycle of ML Project.py
Browse files
pages/3_Life Cycle of ML Project.py
CHANGED
|
@@ -382,10 +382,42 @@ def data_collection_page():
|
|
| 382 |
- Source of light may be from *Stars* , *Sun* or *moon*
|
| 383 |
- An image is formed when light reflects off an object and travels to the eye along a line of sight.This process is **Reflection**
|
| 384 |
- An image is stored in Grid like Structue not in a table or in array like structure
|
| 385 |
-
A Grid like Structure is an intersection of horizontal lines and vertical lines.
|
| 386 |
-
|
| 387 |
-
|
|
|
|
| 388 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 389 |
|
| 390 |
|
| 391 |
|
|
|
|
| 382 |
- Source of light may be from *Stars* , *Sun* or *moon*
|
| 383 |
- An image is formed when light reflects off an object and travels to the eye along a line of sight.This process is **Reflection**
|
| 384 |
- An image is stored in Grid like Structue not in a table or in array like structure
|
| 385 |
+
- A Grid like Structure is an intersection of horizontal lines and vertical lines.
|
| 386 |
+
- The box formed by these lines is known as **Pixel.**
|
| 387 |
+
- Pixels are features of images that is they contain necessary information like *patterns,color,shapes*.
|
| 388 |
+
- Every image has 2 dimensions they are : **Height and Width**.
|
| 389 |
""")
|
| 390 |
+
# color spaces
|
| 391 |
+
def page1():
|
| 392 |
+
st.markdown("# Basic Operations of Image")
|
| 393 |
+
st.write(""" ### imread() :
|
| 394 |
+
- Converts any format(jpg,jpeg,png) into machine representing value(array).
|
| 395 |
+
- Always converts image into 3-D array(BGR format)
|
| 396 |
+
- imread() will give 2 outputs : *boolean value* and *array*.
|
| 397 |
+
- Default **flag = 1** --> 3D array , if **flag = 0** --> 2D array (Grey Scale) """)
|
| 398 |
+
|
| 399 |
+
def page2():
|
| 400 |
+
st.markdown("# How to convert images into tabular data.")
|
| 401 |
+
|
| 402 |
+
def page3():
|
| 403 |
+
st.markdown("how to convert colorspaces")
|
| 404 |
+
|
| 405 |
+
def page4():
|
| 406 |
+
st.markdown("how to handle videos")
|
| 407 |
+
|
| 408 |
+
def page5():
|
| 409 |
+
st.markdown("Transformation / Affine matrix")
|
| 410 |
+
|
| 411 |
+
|
| 412 |
+
page_names_to_funcs = {
|
| 413 |
+
"Main Page": main_page,
|
| 414 |
+
"Page 2": page2,
|
| 415 |
+
"Page 3": page3,
|
| 416 |
+
}
|
| 417 |
+
|
| 418 |
+
selected_page = st.sidebar.selectbox("Select a page", page_names_to_funcs.keys())
|
| 419 |
+
page_names_to_funcs[selected_page]()
|
| 420 |
+
|
| 421 |
|
| 422 |
|
| 423 |
|