Browse Source

Update HyperLPRLite.py

pull/1/MERGE
Jack Yu GitHub 6 years ago
parent
commit
930efc9665
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions
  1. +0
    -9
      HyperLPRLite.py

+ 0
- 9
HyperLPRLite.py View File

@@ -59,7 +59,6 @@ class LPR():
y -= h * 0.15
h += h * 0.3
cropped = self.cropImage(image_color_cropped, (int(x), int(y), int(w), int(h)))

cropped_images.append([cropped,[x, y+padding, w, h]])
return cropped_images

@@ -131,12 +130,9 @@ class LPR():
T+=2;
if T>= image.shape[1]-1:
T= image.shape[1]-1

rect[2] -= rect[2]*(1-res_raw[1] + res_raw[0])
rect[0]+=res[0]

image = image[:,H:T+2]

image = cv2.resize(image, (int(136), int(36)))
return image,rect

@@ -157,8 +153,3 @@ class LPR():
res,confidence = self.recognizeOne(image_rgb)
res_set.append([res,confidence,rect_refine])
return res_set






Loading…
Cancel
Save