标签:mystra android opencv camera error parsing
错误解析Java摄像头设置, 报错: "Error parsing XML: unbound prefix Android"
org.opencv.android.JavaCameraView, 不能使用:
原因是未添加:
xmlns:opencv="http://schemas.android.com/apk/res-auto"
<RelativeLayout 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="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="com.example.hellomycamera.MainActivity" > <org.opencv.android.JavaCameraView android:layout_width="fill_parent" android:layout_height="fill_parent" android:visibility="gone" android:id="@+id/HelloOpenCvView" opencv:show_fps="true" opencv:camera_id="any" /> </RelativeLayout>
Android - Error parsing "org.opencv.android.JavaCameraView" 问题
标签:mystra android opencv camera error parsing
原文地址:http://blog.csdn.net/caroline_wendy/article/details/39055303