Spaces:
Sleeping
Sleeping
Update Home.py
Browse files
Home.py
CHANGED
|
@@ -216,9 +216,9 @@ elif st.session_state.page == "Shearing ":
|
|
| 216 |
- Horizontal shearing slants the image along the x-axis.
|
| 217 |
It changes the angles of the object but preserves parallel lines.
|
| 218 |
''')
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
import cv2
|
| 223 |
import numpy as np
|
| 224 |
sx = 1,sy = 1,tx = 0,ty = 0,shx = 1,shy = 0
|
|
@@ -229,10 +229,10 @@ elif st.session_state.page == "Shearing ":
|
|
| 229 |
cv2.waitKey()
|
| 230 |
cv2.destroyAllWindows()""",language = "python")
|
| 231 |
|
| 232 |
-
|
| 233 |
|
| 234 |
-
|
| 235 |
-
|
| 236 |
|
| 237 |
|
| 238 |
# --- Footer ---
|
|
|
|
| 216 |
- Horizontal shearing slants the image along the x-axis.
|
| 217 |
It changes the angles of the object but preserves parallel lines.
|
| 218 |
''')
|
| 219 |
+
st.image(r"Images/Shearingform.jpg",caption = "Mathmetical Form", width = 500)
|
| 220 |
+
st.subheader("Code:")
|
| 221 |
+
st.code("""
|
| 222 |
import cv2
|
| 223 |
import numpy as np
|
| 224 |
sx = 1,sy = 1,tx = 0,ty = 0,shx = 1,shy = 0
|
|
|
|
| 229 |
cv2.waitKey()
|
| 230 |
cv2.destroyAllWindows()""",language = "python")
|
| 231 |
|
| 232 |
+
st.markdown("<hr>", unsafe_allow_html=True)
|
| 233 |
|
| 234 |
+
if st.button("Back to Home Page"):
|
| 235 |
+
navigate_to("Home")
|
| 236 |
|
| 237 |
|
| 238 |
# --- Footer ---
|