|
@@ -666,7 +666,7 @@ class OCRLayoutManager:
|
|
|
def _add_bboxes_to_plot_batch(self, fig: go.Figure, bboxes: List[List[int]],
|
|
def _add_bboxes_to_plot_batch(self, fig: go.Figure, bboxes: List[List[int]],
|
|
|
image_height: int,
|
|
image_height: int,
|
|
|
line_color: str = "blue",
|
|
line_color: str = "blue",
|
|
|
- line_width: int = 1,
|
|
|
|
|
|
|
+ line_width: int = 2,
|
|
|
fill_color: str = "rgba(0, 100, 200, 0.2)"):
|
|
fill_color: str = "rgba(0, 100, 200, 0.2)"):
|
|
|
"""
|
|
"""
|
|
|
批量添加边界框(性能优化版)
|
|
批量添加边界框(性能优化版)
|
|
@@ -702,7 +702,7 @@ class OCRLayoutManager:
|
|
|
def _add_bboxes_as_scatter(self, fig: go.Figure, bboxes: List[List[int]],
|
|
def _add_bboxes_as_scatter(self, fig: go.Figure, bboxes: List[List[int]],
|
|
|
image_height: int,
|
|
image_height: int,
|
|
|
line_color: str = "blue",
|
|
line_color: str = "blue",
|
|
|
- line_width: int = 1,
|
|
|
|
|
|
|
+ line_width: int = 2,
|
|
|
name: str = "boxes"):
|
|
name: str = "boxes"):
|
|
|
"""
|
|
"""
|
|
|
使用 Scatter 绘制边界框(极致性能优化)
|
|
使用 Scatter 绘制边界框(极致性能优化)
|
|
@@ -766,7 +766,7 @@ class OCRLayoutManager:
|
|
|
bboxes=all_boxes,
|
|
bboxes=all_boxes,
|
|
|
image_height=image.height,
|
|
image_height=image.height,
|
|
|
line_color="rgba(0, 100, 200, 0.8)",
|
|
line_color="rgba(0, 100, 200, 0.8)",
|
|
|
- line_width=1,
|
|
|
|
|
|
|
+ line_width=2,
|
|
|
name="all_boxes"
|
|
name="all_boxes"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
@@ -777,7 +777,7 @@ class OCRLayoutManager:
|
|
|
bboxes=selected_boxes,
|
|
bboxes=selected_boxes,
|
|
|
image_height=image.height,
|
|
image_height=image.height,
|
|
|
line_color="red",
|
|
line_color="red",
|
|
|
- line_width=1,
|
|
|
|
|
|
|
+ line_width=2,
|
|
|
fill_color="rgba(255, 0, 0, 0.3)"
|
|
fill_color="rgba(255, 0, 0, 0.3)"
|
|
|
)
|
|
)
|
|
|
|
|
|