diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-08-29 03:47:44 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-08-29 03:47:44 +0300 |
commit | 1f13a4984ff3255c1c6eba9d97bbae97c4c25e59 (patch) | |
tree | 481bdd4fcccd47373e6b78c9b490948a7eefcc93 /mean.py | |
parent | add README (diff) | |
download | filters-1f13a4984ff3255c1c6eba9d97bbae97c4c25e59.tar.gz filters-1f13a4984ff3255c1c6eba9d97bbae97c4c25e59.zip |
fix Pylint warnings
Diffstat (limited to 'mean.py')
-rw-r--r-- | mean.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -25,7 +25,7 @@ def convolve(img, kernel): DEFAULT_RADIUS = 1 -def do(img_path, radius=DEFAULT_RADIUS, output_path=None): +def mean(img_path, radius=DEFAULT_RADIUS, output_path=None): img = cv2.imread(img_path, cv2.IMREAD_GRAYSCALE) kernel = gen_kernel(radius) output = convolve(img, kernel) @@ -55,7 +55,7 @@ def _parse_args(args=sys.argv): return parser.parse_args(args[1:]) def main(args=sys.argv): - do(**vars(_parse_args(args))) + mean(**vars(_parse_args(args))) if __name__ == '__main__': main() |