Spaces:
Sleeping
Sleeping
Update Home.py
Browse files
Home.py
CHANGED
|
@@ -106,12 +106,12 @@ elif st.session_state.page == "Rotating":
|
|
| 106 |
Definition:
|
| 107 |
Rotation turns the image around a fixed center point (usually the center of the image) by a certain angle.
|
| 108 |
''')
|
| 109 |
-
|
| 110 |
-
|
| 111 |
Rotating an image 45° counterclockwise.
|
| 112 |
''')
|
| 113 |
-
|
| 114 |
-
|
| 115 |
import cv2
|
| 116 |
import numpy as np
|
| 117 |
rm = cv2.getRotationMatrix2D((img.shape[0]//2,img.shape[1]//2),90,1)
|
|
@@ -121,10 +121,10 @@ elif st.session_state.page == "Rotating":
|
|
| 121 |
cv2.waitKey()
|
| 122 |
cv2.destroyAllWindows()""",language = "python")
|
| 123 |
|
| 124 |
-
|
| 125 |
|
| 126 |
-
|
| 127 |
-
|
| 128 |
|
| 129 |
|
| 130 |
|
|
|
|
| 106 |
Definition:
|
| 107 |
Rotation turns the image around a fixed center point (usually the center of the image) by a certain angle.
|
| 108 |
''')
|
| 109 |
+
st.image(r"Images/RotationForm.jpg.png",caption = "Mathmetical Form", width = 500)
|
| 110 |
+
st.write('''Example:
|
| 111 |
Rotating an image 45° counterclockwise.
|
| 112 |
''')
|
| 113 |
+
st.subheader("Code:")
|
| 114 |
+
st.code("""
|
| 115 |
import cv2
|
| 116 |
import numpy as np
|
| 117 |
rm = cv2.getRotationMatrix2D((img.shape[0]//2,img.shape[1]//2),90,1)
|
|
|
|
| 121 |
cv2.waitKey()
|
| 122 |
cv2.destroyAllWindows()""",language = "python")
|
| 123 |
|
| 124 |
+
st.markdown("<hr>", unsafe_allow_html=True)
|
| 125 |
|
| 126 |
+
if st.button("Back to Home Page"):
|
| 127 |
+
navigate_to("Home")
|
| 128 |
|
| 129 |
|
| 130 |
|