I hope anyone can help me to fix this task. I'm working with some Image Classification and tried to combine OpenCv 3.2.0 and DL4J. I knew DL4J also included Opencv, but i think it's useless.
Can anyone help me, how to convert into INDArray ? I tried to read some issue here and Class NativeImageLoader from DL4J has provide the method, asMatrix(Mat image). But when i tried to runing it i got an error
java: no suitable method found for asMatrix(org.opencv.core.Mat)
I don't know how to fix it my code, or maybe there's something wrong with my code. Can anyone help me to find out the problem ?
Btw here's my code :
Mat imgMat = Imgcodecs.imread("C:\\Pictures\\image.jpg");
INDArray image = loader.asMatrix(imgMat);
Thank you for your kind attention.