Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 1117

DNN blobFromImage gives -1*-1 in Android.

$
0
0
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

Viewing all articles
Browse latest Browse all 1117

Latest Images

Trending Articles



Latest Images