This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
hummingbird
/
HyperLPR
Not watched
Unwatch
Watch all
Watch but not notify
2
Star
0
Fork
0
Code
Releases
0
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Update segmentation.py
pull/1/MERGE
syan
GitHub
7 years ago
parent
bf5cb9b911
commit
ca98a1e0fb
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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]
Write
Preview
Loading…
Cancel
Save