Python (with OpenCV) throws the following TypeError. But I have no idea which argument is throwing it. How can I tell?
Traceback (most recent call last):
File "u.py", line 18, in <module>
out = unravel2(img,pupil)
File "/home/chris/code/opencv/iris/support.py", line 57, in unravel2
cv2.logPolar(img, out, center, cv2.WARP_FILL_OUTLIERS)
TypeError: a float is required
For background, here is my code:
def unravel2(img, pupil):
out = np.zeros((max_radius-min_radius,720,3), np.uint8)
center = (297.5,234.5)
cv2.logPolar(img, out, center, cv2.WARP_FILL_OUTLIERS)
return out
float