Ask Your Question
3

Classifying OpenCV Mat objects with Caffe

asked 2015-08-23 08:09:34 -0600

jackbrucesimspon gravatar image

Once I have trained my Caffe model (and have the pretrained.caffemodel file), how do I integrate this into a C++ program to make predictions? I'm using OpenCV to extract grayscale images (Mat datatype) and am trying to determine how I can get the Mat into a format that Caffe can work with.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-08-23 18:52:42 -0600

mkisono gravatar image

Have a look at cpp_classification sample. You can find it under caffe/examples folder. https://github.com/BVLC/caffe/blob/ma... Hope this helps.

Masahiro

edit flag offensive delete link more

Comments

Thanks a lot! I also found another example of how someone had managed to convert OpenCV Mats into Caffe blobs but I'm struggling a little to understand it, any chance you could take a look?

jackbrucesimspon gravatar imagejackbrucesimspon ( 2015-08-25 08:08:33 -0600 )edit

Question Tools

3 followers

Stats

Asked: 2015-08-23 08:09:34 -0600

Seen: 2,092 times

Last updated: Aug 23 '15