码迷,mamicode.com
首页 > 移动开发 > 详细

Android - Error parsing "org.opencv.android.JavaCameraView" 问题

时间:2014-09-04 19:12:00      阅读:304      评论:0      收藏:0      [点我收藏+]

标签:mystra   android   opencv   camera   error parsing   

Error parsing "org.opencv.android.JavaCameraView" 问题


错误解析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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!