fixed a sort bug
This commit is contained in:
parent
18bc144533
commit
6fed221f74
3
main.py
3
main.py
@ -209,9 +209,6 @@ class number(object):
|
|||||||
print(i != j, len(eocr_result[i][0]) == 4, len(eocr_result[j][0]) == 4, disout)
|
print(i != j, len(eocr_result[i][0]) == 4, len(eocr_result[j][0]) == 4, disout)
|
||||||
print("------------------------------C-")
|
print("------------------------------C-")
|
||||||
|
|
||||||
pocr_result = [sorted(pocr_result[0], key=lambda x: len(x[1][0]), reverse=True)]
|
|
||||||
eocr_result = sorted(eocr_result, key=lambda x: len(x[1]), reverse=True)
|
|
||||||
|
|
||||||
if self.debug:
|
if self.debug:
|
||||||
print(pocr_result)
|
print(pocr_result)
|
||||||
print(eocr_result)
|
print(eocr_result)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user