Spaces:
Sleeping
Sleeping
Update Home.py
Browse files
Home.py
CHANGED
|
@@ -30,11 +30,27 @@ st.markdown("""
|
|
| 30 |
|
| 31 |
st.header(":red[Types Of Affine Transformation]")
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
st.header(":red[Types Of Affine Transformation]")
|
| 32 |
|
| 33 |
+
#Define descriptions on the affine transformation types
|
| 34 |
+
descriptions = {
|
| 35 |
+
'1.Translation(Shifting)' : "**Translation** : Shifts the image along x or y axis."
|
| 36 |
+
'2.Rotating' : "**Rotating** : Rotates the image by a certain angle."
|
| 37 |
+
'3.Flipping' : "**Flipping** : Horizontal or vertical flip."
|
| 38 |
+
'4.Scaling' : "**Scaling : Zooming in or out."
|
| 39 |
+
'5.Cropping' : "**Cropping : Random or center cropping."
|
| 40 |
+
'6.Stretching(shearing)': "**Stretching** : Vertical shearing slants the image along the y-axis,Horizontal shearing slants the image along the x-axis."
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
#Navigation menu
|
| 44 |
+
step = st.selectbox("Select the type of affine transformation :",list(descriptions.keys()))
|
| 45 |
+
|
| 46 |
+
# Display description
|
| 47 |
+
st.write(descriptions[step])
|
| 48 |
+
|
| 49 |
+
# Add a button to navigate to the Data Collection page
|
| 50 |
+
if step == '1.Translation(Shifting)':
|
| 51 |
+
if st.button("Learn More About Translation"):
|
| 52 |
+
navigate_to("Translation")
|
| 53 |
+
|
| 54 |
+
#Translation page
|
| 55 |
+
#elif st.session_state.page == "Translation":
|
| 56 |
+
|