mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-03 21:53:39 +08:00
add polygons
This commit is contained in:
parent
8d9cfade49
commit
72f93cf977
@ -236,7 +236,7 @@ class DBPostProcess(object):
|
||||
self.dilation_kernel)
|
||||
else:
|
||||
mask = segmentation[batch_index]
|
||||
if self.use_polygon:
|
||||
if self.use_polygon is True:
|
||||
boxes, scores = self.polygons_from_bitmap(pred[batch_index],
|
||||
mask, src_w, src_h)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user