Layout-Parser / layout-parser

A Unified Toolkit for Deep Learning Based Document Image Analysis
https://layout-parser.github.io/
Apache License 2.0
4.67k stars 449 forks source link

Allowing specifying box_alphas, box_widths and other features for individual layout items #116

Closed lolipopshock closed 2 years ago

lolipopshock commented 2 years ago

Candidates:

  1. lp.draw_box(image, layout, box_alpha=[0.1, 0.2, ...])
  2. lp.draw_box(image, layout, box_alpha_based_on_scores=True)

Also we could change the coloring configs in a way similar to Matplotlib:

  1. lp.draw_box(image, layout, box_colors=[...])
lolipopshock commented 2 years ago

Setting box_alpha_based_on_scores is too specific; not implemented in #129