How to load image to android and resize

后端 未结 1 1495
遇见更好的自我
遇见更好的自我 2021-01-27 06:17

I am trying to load an image in a mat and resize it with the below code

        Mat temp1= new Mat();
        int[] train_responses = null;
        Mat temp2 = n         


        
相关标签:
1条回答
  • 2021-01-27 07:01

    Check that all your png images 0.png, 1.png, ... 9.png all exist, are in the correct location and have non-zero dimensions when you load them via imread. There's nothing otherwise wrong with the code - it works for me when I load my own png image using your code.

    0 讨论(0)
提交回复
热议问题