From f14db9c49c6725528b19f9ce960ed0c1d3580ad3 Mon Sep 17 00:00:00 2001 From: Janik Haitz Date: Fri, 2 Aug 2024 18:10:04 +0200 Subject: [PATCH] convert RGB channel order to cv2 BGR order (#10) --- pagetools/src/line2page/Line2Page.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pagetools/src/line2page/Line2Page.py b/pagetools/src/line2page/Line2Page.py index 3013620..69717eb 100644 --- a/pagetools/src/line2page/Line2Page.py +++ b/pagetools/src/line2page/Line2Page.py @@ -62,7 +62,7 @@ def __init__(self, self.pred_suffix = ".pred.txt" self.img_suffix = output_extension if output_extension else ext - self.background_colour = background_color + self.background_colour = tuple(reversed(background_color)) self.colour_channels = 3 if border[1] > lines: footer_size = border[1] - lines