From 84d6b1f69337b52807b566f1d760007e68dc8467 Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Fri, 16 Oct 2020 17:24:55 +0200 Subject: [PATCH] :bug: numpy.ndarray.as{_,}type --- sbb_binarize/ocrd_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbb_binarize/ocrd_cli.py b/sbb_binarize/ocrd_cli.py index 9868c20..df4daef 100644 --- a/sbb_binarize/ocrd_cli.py +++ b/sbb_binarize/ocrd_cli.py @@ -24,7 +24,7 @@ OCRD_TOOL = loads(resource_string(__name__, 'ocrd-tool.json').decode('utf8')) TOOL = 'ocrd-sbb-binarize' def cv2pil(img): - return Image.fromarray(img.as_type('uint8')) + return Image.fromarray(img.astype('uint8')) def pil2cv(img): # from ocrd/workspace.py