diff --git a/conda/rotation_fix.py b/conda/rotation_fix.py deleted file mode 100644 index bdc1eba..0000000 --- a/conda/rotation_fix.py +++ /dev/null @@ -1,58 +0,0 @@ -# -*- coding: utf-8 -*- -""" -Created on Sat Jun 23 20:25:17 2018 - -@author: dipsy -""" - -from PIL import Image -from math import cos, sin - -path = "tilted_square.jpg" -jpgfile = Image.open(path) - -fixedfile = Image.new('RGB',(24,24)) - -#jpgfile.show() -def dist(p1,p2): - return sqrt((p1[0]-p2[0])**2+(p1[1]-p2[1])**2) - -theta = 30 - -corners = [[38,28],[66,45],[49,73],[21,57]] -l = dist(corners[0],corners[1]) - -dy = 10000 -dx=0 - -co = cos(theta*2*3.14/360) -si = sin(theta*2*3.14/360) - -for c in corners: - if(c[1]