Blame view

Python/Application/main.py 1.11 KB
81de032f   Justine   Ajout de l'applic...
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
  import ColorObject
  import Contour
  import Gradient
  import Skeleton2
  import Threshold
  import ImageComponents
  import ShapeDetection
  
  def ProcessChoiceMenu(choice):
  	if choice == '1':
  		ColorObject.ColorChoice()	 
  	elif choice == '2' :
  		Skeleton2.KernelChoice()
  	elif choice == '3' :
  		Contour.ContourChoice()
  	elif choice == '4' :
  		ImageComponents.Edges()
  	elif choice == '5' :
  		ImageComponents.Corners()
  	elif choice == '6' :
  		ShapeDetection.FindCircles()
  	elif choice == '7' :
  		ShapeDetection.FindShapes()
  	elif choice == '8' :
  		Gradient.GradientChoice()
  	elif choice == '9':
  		Threshold.ThresholdChoice()
  	else:
  		exit()
  	return
  
  def MenuApplication():
  	print ('\t\t\tMenu Traitement d\'images \n\n')
  	print ('\t1. Find a colored object')
  	print ('\t2. Skeletisation')
  	print ('\t3. Contours')
  	print ('\t4. Canny edge detection')
  	print ('\t5. Corner detection')
  	print ('\t6. Find a circle')
  	print ('\t7. Find Basic shapes')
  	print ('\t8. Gradient')
  	print ('\t9. Threshold')
  	choice = raw_input('\n\tChoix multiple possible\n')
  	for i in range (0, len(choice)):
  		ProcessChoiceMenu(choice[i])
  	return 
  
  MenuApplication()