diff --git a/pixelocr/utils.py b/pixelocr/utils.py index 0253761..c4c3d85 100644 --- a/pixelocr/utils.py +++ b/pixelocr/utils.py @@ -63,3 +63,9 @@ def neighbourhood(lst, index, window=5): before = lst[:index] after = lst[index + 1:] return before[-window:] + after[:window] + + +def pipe(value, *funcs): + for func in funcs: + value = func(value) + return value