-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
24 lines (19 loc) · 755 Bytes
/
main.py
File metadata and controls
24 lines (19 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from Graph import *
from UserInput import *
from KMeansAlgorithm import *
from GoogleMapsConnection import *
from App import *
def main():
app = App()
app.run()
centroidAmnt = int(App.clusterAmount)
graph = Graph(centroidAmnt) #Init graph
gapi = GoogleMapsConnection() #Init google maps api
gapi.get_coord_json(App.loc) #Fetch the coordinates
img = gapi.get_image() #Fetch picture
graph.set_background(img) # Sætter graph baggrunden til img variablen
kmeans = KMeansAlgorithm(centroidAmnt) #Init KMeans algoritmen
usein = UserInput(graph,kmeans) #Init UserInput klassen
graph.update_graph() #Opdatere og viser grafen
if __name__ == "__main__":
main()