コード例 #1
0
def create_default_filter_stack():
    stack = [
        LargeFilter(),
        SmallFilter(),
        LargeAreaFilter(),
        ContainedFilter(),
        LineFinder(),
        NearLineFilter()
    ]
    stack[4].add_poshook(create_broadcast("lines_topmiddlebottoms", stack[5]))
    return stack
コード例 #2
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
def create_default_filter_stack():
    stack= [LargeFilter(), SmallFilter(), LargeAreaFilter(), ContainedFilter(), LineFinder(), NearLineFilter()]
    stack[4].add_poshook( create_broadcast( "lines_topmiddlebottoms", stack[5] ) )
    return stack
コード例 #3
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def __init__(self, **args):
     filters= create_default_filter_stack()
     stack = [BlurProcessor(), RawContourSegmenter()] + filters + [SegmentOrderer()]
     FullSegmenter.__init__(self, stack, **args)
     stack[0].add_prehook( create_broadcast( "_input", filters, "image" ) )
コード例 #4
0
 def __init__(self, **args):
     filters = create_default_filter_stack()
     stack = [BlurProcessor(), RawContourSegmenter()] + filters + [SegmentOrderer()]
     FullSegmenter.__init__(self, stack, **args)
     stack[0].add_prehook(create_broadcast("_input", filters, "image"))