Testing Circle Finder


In [1]:
import circlefinder

In [2]:
#circlefinder.find_circle_coords?
circles = circlefinder.find_circle_coords('petri.jpg')

In [3]:
# plotting found circles
circlefinder.plot_circle_coords('petri.jpg',circles)

Testing Master Solver


In [4]:



---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-4-7bcbf6fc3d0e> in <module>()
----> 1 import grayscale

/Users/philomathie/Programming/alexREPO/grayscale.py in <module>()
      4 import numpy as np
      5 from imp import reload
----> 6 import alexREPO.fitting as fitting
      7 reload(fitting)
      8 #import circlefinder

ImportError: No module named 'alexREPO'

In [5]:
grayscale.master_solver('petri.jpg')


---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-5-0521a3cd8fe2> in <module>()
----> 1 grayscale.master_solver('petri.jpg')

/Users/philomathie/Programming/Casimir-Programming-2/grayscale.py in master_solver(img, xs)
     75     """
     76 
---> 77     img = grayscale(img) ## gray scale
     78 
     79     if xs!=None:

/Users/philomathie/Programming/Casimir-Programming-2/grayscale.py in grayscale(rgb)
      8 def grayscale(rgb):
      9 
---> 10     r, g, b = rgb[:,:,0], rgb[:,:,1], rgb[:,:,2]
     11     gray = 0.2989 * r + 0.5870 * g + 0.1140 * b
     12 

TypeError: string indices must be integers

In [ ]: