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.

Setting up ROI

Kulczykowski__Michał
339 Views

I want to be able to set up ROI.

Documentation mention that it is possible when stacking up networks, I just want to do it for one network.

When I run this code:

InferenceEngine::ROI cropRoi;
cropRoi.posX = inRoiBox.x;
cropRoi.posY = inRoiBox.y;
cropRoi.sizeX = inRoiBox.width;
cropRoi.sizeY = inRoiBox.height;
auto roiBlob = InferenceEngine::make_shared_blob(input, cropRoi);
infer_request.SetBlob(item.first, roiBlob);

I get this exception: [Standard exception] Input blob size is not equal network input size (120000!=1555200). 

 

Is it even possible to crop image to ROI if the network shape have been set during convertion?

 

0 Kudos
1 Reply
SIRIGIRI_V_Intel
Employee
339 Views

Hi Michal,

Please refer to the object_detection_demo_ssd_async demo where the input image is scaled to the input model size.

Hope this helps.

Regards,

Ram prasad

0 Kudos
Reply