Browse Source

Update segmentation.py

pull/1/MERGE
syan GitHub 7 years ago
parent
commit
ca98a1e0fb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hyperlpr_py3/segmentation.py

+ 1
- 1
hyperlpr_py3/segmentation.py View File

@@ -110,7 +110,7 @@ def get_median(data):
# print size

if size % 2 == 0: # 判断列表长度为偶数
median = (data[size//2]+data[size//2-1])/2
median = (data[size//2]+data[size//2-1])//2
data[0] = median
if size % 2 == 1: # 判断列表长度为奇数
median = data[(size-1)//2]


Loading…
Cancel
Save