-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestingPython.py
34 lines (33 loc) · 1002 Bytes
/
TestingPython.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
for i in range(7):
print(i)
'''
choice = np.random.randint(0,4)
if choice == 0:
for i in range(floor(x*CENTRE), floor((x+1)*CENTRE)):
compare_border = img_orig[floor(y*CENTRE)][i] > (220, 220, 220)
if compare_border.all():
done = True
break
x +=2
elif choice == 1:
for i in range(floor((x-1)*CENTRE), floor(x*CENTRE)):
compare_border = img_orig[floor(y*CENTRE)][i] > (220, 220, 220)
if compare_border.all():
done = True
break
x -=2
elif choice == 2:
for i in range(floor(y*CENTRE), floor((y+1)*CENTRE)):
compare_border = img_orig[i][floor(y*CENTRE)] > (220, 220, 220)
if compare_border.all():
done = True
break
y +=2
elif choice == 3:
for i in range(floor((y-1)*CENTRE), floor(y*CENTRE)):
compare_border = img_orig[i][floor(y*CENTRE)] > (220, 220, 220)
if compare_border.all():
done = True
break
y-=2
'''