Nikhithapotnuru commited on
Commit
0cebdf6
·
verified ·
1 Parent(s): 5263d2f

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +24 -8
Home.py CHANGED
@@ -30,11 +30,27 @@ st.markdown("""
30
 
31
  st.header(":red[Types Of Affine Transformation]")
32
 
33
- st.markdown("""
34
- 1. Translation(Shifting)
35
- 2. Rotation
36
- 3. Fliping
37
- 4. Scaling
38
- 5. Cropping
39
- 6. Shearing(Stretching)
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
+