Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

DNN blobFromImage gives -1*-1 in Android.

I am using a model with extension .net which works perfectly fine in Python.

net = cv2.dnn.readNet('models/model.net') blob = cv2.dnn.blobFromImage(image, 1 / 255.0, (1024, 512), 0, swapRB=True, crop=False)

but when I tried to do the same on android I got blob size -1*-1 ideal it should not it should be in the passed dimension only.

I had used this link for the reference. https://docs.opencv.org/3.4/d0/d6c/tutorial_dnn_android.html

click to hide/show revision 2
None

updated 2018-11-19 04:35:54 -0600

berak gravatar image

DNN blobFromImage gives -1*-1 in Android.

I am using a model with extension .net which works perfectly fine in Python.

net = cv2.dnn.readNet('models/model.net')
blob = cv2.dnn.blobFromImage(image, 1 / 255.0, (1024, 512), 0,
        swapRB=True, crop=False)

crop=False)

but when I tried to do the same on android I got blob size -1*-1 ideal it should not it should be in the passed dimension only.

I had used this link for the reference. https://docs.opencv.org/3.4/d0/d6c/tutorial_dnn_android.html