Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

InferRequest - create new object for every prediction or reuse?

wsla
Beginner
273 Views

Hello,

I am wondering if the object InferRequest should be created for every frame or I should be re-using it and just update the blob? Application will be mostly constantly processing the video frames, but in some cases it will pause for a few hours.

Thanks

0 Kudos
1 Reply
Severine_H_Intel
Employee
273 Views

Hi Wsla, 

the InferRequest can be created before you start looping on your frames, therefore you only update it while processing the frames.

Best, 

Severine

0 Kudos
Reply