xuexingyu24 / License_Plate_Detection_Pytorch

A two stage lightweight and high performance license plate recognition in MTCNN and LPRNet
Other
641 stars 171 forks source link

run time error #16

Open RyanC1681 opened 4 years ago

RyanC1681 commented 4 years ago

Hi, I tested your sample photo work, but it got error with other US license plates. Do I need to retain CNN model or resize the photo? Thanks,

IndexError Traceback (most recent call last)

in 13 STN.eval() 14 ---> 15 bbox = bboxes[0, :4] 16 x1, y1, x2, y2 = [int(bbox[j]) for j in range(4)] 17 w = int(x2 - x1 + 1.0) IndexError: index 0 is out of bounds for axis 0 with size 0