From ac399baa4576c2b9c6cad1597ae2f016586cd9a4 Mon Sep 17 00:00:00 2001 From: jahtz Date: Fri, 2 Aug 2024 17:37:24 +0200 Subject: [PATCH] convert RGB channel order to cv2 BGR order --- 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