我在 Windows 上的 Android Studio 中编写。我在 native C++ 代码中使用 OpenCV。调用该函数时,我在 logcat 中收到此错误:
"OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvShowImage, file /Volumes/Linux/builds/master_pack-android/opencv/modules/highgui/src/window.cpp, line 545".
我发现了如何在 LInux 中执行此操作的不同说明,但没有找到适用于 Windows 的说明。谁知道我该如何解决这个问题?
请您参考如下方法:
该错误意味着我无法在 Android 上使用 opencv 的 gui/窗口函数,因为窗口函数在 Android 上的工作方式与在台式机上有很大不同。
这意味着,我不能使用 imshow() nameWindow() createTrackBar() 或 waitKey() ,但必须使用 native android 等效项
(这既不是windows问题,也不是linux问题,重新编译也改变不了)