Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

a very similar program in c++

cv.dnn.blobFromImage(img, size=(300, 300), swapRB=True, crop=False)

and

blobFromImage(img, blob, 1 / 127.5, Size(299, 299), Scalar(127.5, 127.5, 127.5), true, false);

Deep learning models are mathematical objects.They are trained for a specific distribution of input data.