Ask Your Question
0

Porting code from 3.2 to 3.3

asked Sep 28 '17

macc.n gravatar image

Hello everybody,

I updated OpenCV to the last version and I have a problem about the porting of a code realized with the version 3.2.

With 3.2, I use the Blob class:

Blob inputBlob = Blob(face_resized);

But with the 3.3, there is no Blob class in dnn. How can I change my code with the new version?

Thanks for your help.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Sep 28 '17

berak gravatar image

the blobs are all 4d cv::Mat's now. (numimages, numchannels, h,w) , and you upload them via blobFromImage .

please have a look at the samples, e.g. here

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Sep 28 '17

Seen: 189 times

Last updated: Sep 27 '17