我在我的 Eclipse 中设置了 OpenCV 和 Android。以下是我的布局文件之一:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:opencv="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<org.opencv.android.JavaCameraView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="gone"
android:id="@+id/hello"
opencv:show_fps="true"
opencv:camera_id="any" />
</LinearLayout>
Eclipse 编译器抱怨:
No resource identifier found for attribute 'show_fps' in package
No resource identifier found for attribute 'camera_id' in package