Skip to content

Commit

Permalink
convert RGB channel order to cv2 BGR order (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
jahtz authored Aug 2, 2024
1 parent 0c9b342 commit f14db9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pagetools/src/line2page/Line2Page.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f14db9c

Please sign in to comment.