Stone Zhang
commited on
Commit
·
c1793e8
1
Parent(s):
6eef315
Fix DB net (#58)
Browse files
models/text_detection_db/demo.py
CHANGED
@@ -66,7 +66,7 @@ if __name__ == '__main__':
|
|
66 |
binaryThreshold=args.binary_threshold,
|
67 |
polygonThreshold=args.polygon_threshold,
|
68 |
maxCandidates=args.max_candidates,
|
69 |
-
unclipRatio=args.unclip_ratio
|
70 |
backendId=args.backend,
|
71 |
targetId=args.target
|
72 |
)
|
@@ -82,7 +82,7 @@ if __name__ == '__main__':
|
|
82 |
# Print results
|
83 |
print('{} texts detected.'.format(len(results[0])))
|
84 |
for idx, (bbox, score) in enumerate(zip(results[0], results[1])):
|
85 |
-
print('{}: {} {} {} {}, {:.2f}'.format(idx, bbox[0], bbox[1], bbox[2], bbox[3], score
|
86 |
|
87 |
# Draw results on the input image
|
88 |
image = visualize(image, results)
|
|
|
66 |
binaryThreshold=args.binary_threshold,
|
67 |
polygonThreshold=args.polygon_threshold,
|
68 |
maxCandidates=args.max_candidates,
|
69 |
+
unclipRatio=args.unclip_ratio,
|
70 |
backendId=args.backend,
|
71 |
targetId=args.target
|
72 |
)
|
|
|
82 |
# Print results
|
83 |
print('{} texts detected.'.format(len(results[0])))
|
84 |
for idx, (bbox, score) in enumerate(zip(results[0], results[1])):
|
85 |
+
print('{}: {} {} {} {}, {:.2f}'.format(idx, bbox[0], bbox[1], bbox[2], bbox[3], score))
|
86 |
|
87 |
# Draw results on the input image
|
88 |
image = visualize(image, results)
|