未验证 提交 04aac12d 编写于 作者: S Stone Zhang 提交者: GitHub

Fix DB net (#58)

上级 d27decca
......@@ -66,7 +66,7 @@ if __name__ == '__main__':
binaryThreshold=args.binary_threshold,
polygonThreshold=args.polygon_threshold,
maxCandidates=args.max_candidates,
unclipRatio=args.unclip_ratio
unclipRatio=args.unclip_ratio,
backendId=args.backend,
targetId=args.target
)
......@@ -82,7 +82,7 @@ if __name__ == '__main__':
# Print results
print('{} texts detected.'.format(len(results[0])))
for idx, (bbox, score) in enumerate(zip(results[0], results[1])):
print('{}: {} {} {} {}, {:.2f}'.format(idx, bbox[0], bbox[1], bbox[2], bbox[3], score[0]))
print('{}: {} {} {} {}, {:.2f}'.format(idx, bbox[0], bbox[1], bbox[2], bbox[3], score))
# Draw results on the input image
image = visualize(image, results)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册