Java openCV - Error while conevrting Bitmap to Mat

前端 未结 2 1416
予麋鹿
予麋鹿 2021-01-07 15:00

I am using Java openCV, and i try to load a photo and run the template matching over it. The template matching method deals with Mat objects, so i need to load the images an

2条回答
  •  渐次进展
    2021-01-07 15:32

    loading using OpenCV is quicker (20%-40%) than loading using BitmapFactory and transforming to OpenCV Mat

    Mat image = Highgui.imread("/sdcard/TVguide/Detection/detected.jpg");

提交回复
热议问题