sort optimization
This commit is contained in:
parent
8ffeeb17f5
commit
95aa24e68c
2
main.py
2
main.py
@ -230,6 +230,8 @@ class number(object):
|
|||||||
)
|
)
|
||||||
ocr_filter.append(e[1])
|
ocr_filter.append(e[1])
|
||||||
|
|
||||||
|
ocr_result = sorted(ocr_result, key=lambda x:len(x[1]), reverse=True)
|
||||||
|
|
||||||
# Read database
|
# Read database
|
||||||
for i in ocr_result:
|
for i in ocr_result:
|
||||||
r = self.search(i[1])
|
r = self.search(i[1])
|
||||||
|
Loading…
Reference in New Issue
Block a user