old_contents: # -*- coding: utf-8 -*-
  
  """ This file is part of OctoPNP
  
      This is a test script to execute the imageprocessing-steps independent from the main software
      and particularly without a running printer.
  
      Main author: Florens Wasserfall <wasserfall@kalanka.de>
  """
  
  import ImageProcessing
  import time
  
  im = ImageProcessing.ImageProcessing(15.0, 120, 120)
  
  
  start_time = time.time()
  
  im._interactive = True
  #im.locatePartInBox("../utils/testimages/head_atmega_SO8.png", False)
  #im.locatePartInBox("../utils/testimages/head_atmega_SO8_2.png", False)
  #print im.getPartOrientation("../utils/testimages/bed_atmega_SO8_rotated.png", 30)
  im.getPartOrientation("../utils/testimages/orientation_bed_atmega_SO8_green.png", 55.65)
  #im.getPartPosition("../utils/testimages/orientation_bed_atmega_SO8_green.png", 55.65)
  #im.getPartOrientation("../utils/testimages/bed_resistor_1206.png", 55.65)
  
  end_time = time.time()
  print("--- %s seconds ---" % (time.time() - start_time))
  
new_contents: # -*- coding: utf-8 -*-
  
  """ This file is part of OctoPNP
  
      This is a test script to execute the imageprocessing-steps independent from the main software
      and particularly without a running printer.
  
      Main author: Florens Wasserfall <wasserfall@kalanka.de>
  """
  
  import ImageProcessing
  import time
  
  im = ImageProcessing.ImageProcessing(15.0, 120, 120)
  
  
  start_time = time.time()
  
  im._interactive = True
  # im.locatePartInBox("../utils/testimages/head_atmega_SO8.png", False)
  # im.locatePartInBox("../utils/testimages/head_atmega_SO8_2.png", False)
  # print im.getPartOrientation("../utils/testimages/bed_atmega_SO8_rotated.png", 30)
  im.getPartOrientation("../utils/testimages/orientation_bed_atmega_SO8_green.png", 55.65)
  # im.getPartPosition("../utils/testimages/orientation_bed_atmega_SO8_green.png", 55.65)
  # im.getPartOrientation("../utils/testimages/bed_resistor_1206.png", 55.65)
  
  end_time = time.time()
  print("--- %s seconds ---" % (time.time() - start_time))
  
subject: reformat file