script for converting ASCII to sgf
[imago.git] / linef.py
index 29ce2e3..4e35781 100644 (file)
--- a/linef.py
+++ b/linef.py
@@ -43,11 +43,11 @@ def find_lines(image, show_all, do_something, verbose):
     if show_all:
         do_something(im_hough, "hough transform")
 
-    im_hough = filters.peaks(im_hough)
-    if show_all:
-        do_something(im_hough, "peak extraction")
+   # im_hough = filters.peaks(im_hough)
+   # if show_all:
+   #     do_something(im_hough, "peak extraction")
                
-    im_h2 = filters.high_pass(im_hough, 120)
+    im_h2 = filters.high_pass(im_hough, 96)
     if show_all:
         do_something(im_h2, "second high pass filters")
 
@@ -109,7 +109,7 @@ def find_lines(image, show_all, do_something, verbose):
     if show_all:
         do_something(image_g, "lines")
    
-    return lines, lines_m[0][0], lines_m[1][0], bounds, hough1
+    return lines, lines_m[0][0], lines_m[1][0], bounds, hough1, im_h
 
 def combine(image1, image2):
     im_l1 = image1.load()