Ask Your Question
0

Porting code from 3.2 to 3.3

asked 2017-09-27 18:28:12 -0600

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-09-27 19:25:42 -0600

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

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-09-27 18:28:12 -0600

Seen: 185 times

Last updated: Sep 27 '17