Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

http://docs.opencv.org/java/3.1.0/org/opencv/imgcodecs/Imgcodecs.html#imdecode-org.opencv.core.Mat-int-

http://docs.opencv.org/java/3.1.0/org/opencv/imgcodecs/Imgcodecs.html#imdecode-org.opencv.core.Mat-int-

i don't use java, so cannot test, but i guess, you have to extract a byte[] from your Blob , make a MatOfBytes from that, and then use imdecode()

http://docs.opencv.org/java/3.1.0/org/opencv/imgcodecs/Imgcodecs.html#imdecode-org.opencv.core.Mat-int-

i don't use java, so cannot test, but i guess, you have to extract a byte[] from your Blob , make a MatOfBytes from that, and then use imdecode()

also, imho you got image and template reversed (it looks like you're searching in the frame for some template from your database. if so, you need to swap image & template)