No implementation found for long org.opencv.highgui.Highgui.imread_1(OpenCV in Android)

在用OpenCV裁剪图片中人脸的时,程序直接崩了,log错误信息如图:
  No implementation found for long org.opencv.highgui.Highgui.imread_1(找不到Highgui的实现)
No implementation found for long org.opencv.highgui.Highgui.imread_1(OpenCV in Android)_第1张图片
  这是由于onCreate()在被加载之前,OpenCVAndroid 库还未被加载或成功初始化,我就调用了Higgui.imread()。因此,必须在onCreate()之前通过OpenCVManager加载并初始化Opencv库。要在OpenCV库加载并初始化成功的回调函数onManagerConnected(int status)中调用Highdui.imread()

你可能感兴趣的:(Android)