Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml JavaCameraView渲染错误_Xml_Opencv3.0 - Fatal编程技术网

Xml JavaCameraView渲染错误

Xml JavaCameraView渲染错误,xml,opencv3.0,Xml,Opencv3.0,我对javacameraview有一个问题,我用它作为分类器,我想在屏幕底部插入一个文本框,当应用程序看到一个特殊的对象时,它可以在那里插入一个该对象的名称。 我修改了activity_main.xml,但它不起作用。 这是已修改的文件: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"

我对javacameraview有一个问题,我用它作为分类器,我想在屏幕底部插入一个文本框,当应用程序看到一个特殊的对象时,它可以在那里插入一个该对象的名称。 我修改了activity_main.xml,但它不起作用。 这是已修改的文件:

<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="225dp"
    android:orientation="horizontal">

    <!--  com.example.name.opencvdetect.CameraModify  -->

    <org.opencv.android.JavaCameraView
        android:layout_width="match_parent"
        android:layout_height="225dp"
        android:id="@+id/cameraAndroid"
        opencv:show_fps="true"
        opencv:camera_id="any"
        />

    <RelativeLayout
        android:id="@+id/InnerRelativeLayout"
        android:layout_width="629dp"
        android:layout_height="51dp"
        android:layout_alignParentBottom="true"
        android:layout_alignParentStart="true">

    <TextView
        android:id="@+id/txtDisp"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Here where the name of the object must be insert."
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true" />
    </RelativeLayout>

</RelativeLayout>

但是当我在手机(Nexus 5)上运行它时,我看到了全屏,但看不到文本视图。有人能帮我吗?谢谢