1 | initial version |
http://docs.opencv.org/java/3.1.0/org/opencv/imgcodecs/Imgcodecs.html#imdecode-org.opencv.core.Mat-int-
2 | No.2 Revision |
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()
3 | No.3 Revision |
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)