Пример #1
0
def ht_test_12(img_fp, magn_thresh=20, spl=20):
    img, lnimg, edimg, ht = ht_detect_lines(img_fp,
                                            magn_thresh=magn_thresh,
                                            spl=spl)
    cv2.imwrite('im12_ln.png', lnimg)
    edimg.save('im12_ed.png')
    del img
    del lnimg
    del edimg
Пример #2
0
def ht_test_01(img_fp, magn_thresh=20, spl=20):
    img, lnimg, edimg, ht = ht_detect_lines(img_fp,
                                            magn_thresh=magn_thresh,
                                            spl=spl)
    # lnimg = ht_detect_lines(img_fp, magn_thresh, spl)
    # cv2.imwrite('im01_ln.png', lnimg)
    lnimg.save('im01_ln.png')
    edimg.save('im01_ed.png')
    del img
    del lnimg
    del edimg