ImageEn, unit ievision

TIEVisionNNet.setInputSize

TIEVisionNNet.setInputSize


Declaration

procedure setInputSize(width, height: int32_t); safecall;


Description

Set the size of the input image that will be fed to the neural network.
Some models accept only specific input sizes (ie Yolov4, may accept 416x416 inputs).

Parameter Description
width Input width
height Input height


Example

nnet := IEVisionLib.createNNet('yolov4.weights', 'yolov4.cfg');
nnet.setInputSize(416, 416);
nnet.setInputScale(1.0/255);