Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -146,7 +146,7 @@ def shearing(img,n=5):
|
|
| 146 |
ty=np.random.randint(1,30)
|
| 147 |
shm=np.array([[sx,shx,tx],[shy,sy,ty]],dtype=np.float32)
|
| 148 |
img_all=cv2.warpAffine(img,shm,(img.shape[1],img.shape[0]))
|
| 149 |
-
save_image_and_show(
|
| 150 |
#img_shear_rgb=cv2.cvtColor(img_all,cv2.COLOR_BGR2RGB)
|
| 151 |
#st.image(img_shear_rgb, caption="Shearing Applied", use_container_width=True)
|
| 152 |
|
|
|
|
| 146 |
ty=np.random.randint(1,30)
|
| 147 |
shm=np.array([[sx,shx,tx],[shy,sy,ty]],dtype=np.float32)
|
| 148 |
img_all=cv2.warpAffine(img,shm,(img.shape[1],img.shape[0]))
|
| 149 |
+
save_image_and_show(img_all)
|
| 150 |
#img_shear_rgb=cv2.cvtColor(img_all,cv2.COLOR_BGR2RGB)
|
| 151 |
#st.image(img_shear_rgb, caption="Shearing Applied", use_container_width=True)
|
| 152 |
|