You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split image four area and detect which area the point and Rotate image by degree.
# Noktanın hangi bölgede olduğunu bulifx<w/2andy<h/2:
# Görüntü matrisini bir açı derecesinde döndürprint("Sol üst köşe")
angle=round(270+m2_deg)
rotation_image(angle)
elifx<w/2andy>=h/2:
print("Sol alt köşe")
angle=round(180+ (90+m2_deg))
rotation_image(angle)
elifx>=w/2andy<h/2:
print("Sağ üst köşe")
angle=round(90+m2_deg )
rotation_image(angle)
else:
print("Sağ alt köşe")
angle=round(90+m2_deg )
rotation_image(angle)
About
Rotate the image relative to the reference point .