Exception?
Midnight1155 opened this issue · 2 comments
Midnight1155 commented
Exception in thread Thread-11:
Traceback (most recent call last):
File "C:\Users\Yongj\AppData\Local\Programs\Python\Python37\lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "C:\Users\Yongj\AppData\Local\Programs\Python\Python37\lib\threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "vehiclemoniter.py", line 72, in getLicensePlateNumber
X1=js['results'][0]['coordinates'][0]['x']
IndexError: list index out of range
ShreyAmbesh commented
It's happening because many subsequent requests are being sent to the openalpr api. You can put the requests in a queue and make the network api calls after a particular interval of time.
NayanDoshi commented
same problem happens with me also
please help