Sathwikchowdary commited on
Commit
888eb4a
·
verified ·
1 Parent(s): 756cac5

Update pages/Info _of_Image.py

Browse files
Files changed (1) hide show
  1. pages/Info _of_Image.py +0 -23
pages/Info _of_Image.py CHANGED
@@ -74,16 +74,6 @@ with col2:
74
  "</p>",
75
  unsafe_allow_html=True
76
  )
77
- st.markdown(
78
- "<p style='font-size: 16px; color: White;'>Example:</p>"
79
- "<pre style='background: #333; color: white; padding: 10px;'>"
80
- "import cv2\n"
81
- "fourcc = cv2.VideoWriter_fourcc(*'XVID')\n"
82
- "out = cv2.VideoWriter('output.avi', fourcc, 20.0, (640, 480))\n"
83
- "# Capture frames and write them using out.write(frame)"
84
- "</pre>",
85
- unsafe_allow_html=True
86
- )
87
 
88
  with col3:
89
  if st.button("Affine Methods"):
@@ -95,19 +85,6 @@ with col3:
95
  "</p>",
96
  unsafe_allow_html=True
97
  )
98
- st.markdown(
99
- "<p style='font-size: 16px; color: White;'>Example:</p>"
100
- "<pre style='background: #333; color: white; padding: 10px;'>"
101
- "import cv2\n"
102
- "import numpy as np\n"
103
- "rows, cols = img.shape[:2]\n"
104
- "pts1 = np.float32([[50, 50], [200, 50], [50, 200]])\n"
105
- "pts2 = np.float32([[10, 100], [200, 50], [100, 250]])\n"
106
- "M = cv2.getAffineTransform(pts1, pts2)\n"
107
- "dst = cv2.warpAffine(img, M, (cols, rows))\n"
108
- "</pre>",
109
- unsafe_allow_html=True
110
- )
111
 
112
  # Link to Colab
113
  st.markdown(
 
74
  "</p>",
75
  unsafe_allow_html=True
76
  )
 
 
 
 
 
 
 
 
 
 
77
 
78
  with col3:
79
  if st.button("Affine Methods"):
 
85
  "</p>",
86
  unsafe_allow_html=True
87
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
88
 
89
  # Link to Colab
90
  st.markdown(