Browse Source

comment print

v2
xg.gao 5 years ago
parent
commit
430bcb5389
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      hyperlpr_pip_pkg/hyperlpr/hyperlpr.py

+ 2
- 2
hyperlpr_pip_pkg/hyperlpr/hyperlpr.py View File

@@ -48,7 +48,7 @@ class LPR:
for i in range(3):
im_tensor[0, i, :, :] = (im[:, :, 2 - i] / pixel_scale - pixel_means[2 - i]) / pixel_stds[2 - i]
self.ssd_detection.setInput(im_tensor)
print(im_tensor.shape)
# print(im_tensor.shape)
cropped_images = []
cvOut = self.ssd_detection.forward()
for detection in cvOut[0, 0, :, :]:
@@ -306,7 +306,7 @@ class LPR:
res_set = []
for j, plate in enumerate(images):
plate, [left, top, right, bottom] = plate
print(left, top, right, bottom)
# print(left, top, right, bottom)
if DB:
w, h = right - left, bottom - top
plate = image[top:bottom, left:right, :]


Loading…
Cancel
Save