Open wyblmj opened 5 years ago
detection_time: 0.8436911106109619 (361, 387, 3)
detection_time: 1.1452476978302002 (380, 528, 3)
detection_time: 0.024300336837768555 (306, 345, 3)
detection_time: 0.019081830978393555 (370, 374, 3)
detection_time: 0.04279327392578125 (398, 543, 3)
detection_time: 0.027606725692749023 (302, 345, 3)
detection_time: 0.01844048500061035 (375, 379, 3)
detection_time: 0.02838587760925293 (301, 347, 3)
detection_time: 0.020696640014648438 (332, 385, 3)
detection_time: 1.0625498294830322 (413, 509, 3)
detection_time: 0.023333072662353516 (302, 344, 3)
detection_time: 0.023662567138671875 (333, 385, 3)
detection_time: 0.02642965316772461 (416, 492, 3)
detection_time: 0.027992725372314453 (313, 345, 3)
detection_time: 0.7520897388458252 (371, 371, 3)
detection_time: 1.3800139427185059 (457, 724, 3)
{'class': 'car', 'confidence': 0.37833863496780396, 'bbox': [150.31417846679688, 47.27754211425781, 874.67724609375, 504.4940490722656], 'lpnumber': 'P262F0X'}
as can be seen from the detection_time, which is extracted from the function 'detect_lp' the elapsed time for model.predict(T)... sometimes is around 0.02, but sometimes, it jump to 1 or 2 seconds. the following is the image shapes.
Could someone please give some insight of this time cost issue?
@wyblmj Hello, I had the same question before, but when I change the (w,h) of the test image, I found detection time is close to the size of image, which image is larger, more time you need to detect.
@wyblmj Hello, I had the same question before, but when I change the (w,h) of the test image, I found detection time is close to the size of image, which image is larger, more time you need to detect.
However, when its running for a longer time, the processing time will be more stable and fast. any idea how to explain this situation?
The time of detection depends on the dimensions of the image as it requires more processing to go through all the pixels.
Regarding the processing time becoming faster and more stable after running is a Normal phenomenon. The first couple of images take more time than the rest as the model initializes a lot of different variables.
Hi,
I was trying to implement the model in real time, sometimes, the detection for the number plate phase takes 0.1 second or less, but sometime it may need >1 second for each car, any idea or insight for this?
OCR part is quite stable and fast.
Thank you!