Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/309.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.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
Java 如何修复我扫描了show ar型号的二维码,但型号出现后我的相机帧速率低_Java_Android_Augmented Reality - Fatal编程技术网

Java 如何修复我扫描了show ar型号的二维码,但型号出现后我的相机帧速率低

Java 如何修复我扫描了show ar型号的二维码,但型号出现后我的相机帧速率低,java,android,augmented-reality,Java,Android,Augmented Reality,我有一些问题。在扫描二维码之前,我的相机帧速率很高,但在我的型号出现之后,我的相机帧速率很低(我的应用程序使用ar core和java) (来自我相机的视频:) 这显然是因为表现。没有开关可以提升您的相机体验。你是如何在相机表面上书写对象的?当我尝试谷歌的simple ar core(谷歌测试ar的应用程序)时,它的帧速率并不低。我下面的代码视频()显示了代码,你是如何解析二维码的。也许你正在解析它,而true。好的,我会在我的帖子上发布 public void setImage(final

我有一些问题。在扫描二维码之前,我的相机帧速率很高,但在我的型号出现之后,我的相机帧速率很低(我的应用程序使用ar core和java) (来自我相机的视频:)


这显然是因为表现。没有开关可以提升您的相机体验。你是如何在相机
表面上书写对象的
?当我尝试谷歌的simple ar core(谷歌测试ar的应用程序)时,它的帧速率并不低。我下面的代码视频()显示了代码,你是如何解析二维码的。也许你正在解析它
,而true
。好的,我会在我的帖子上发布
 public void setImage(final AugmentedImage image){
    this.image = image;
    if(!modelRenderableCompletableFuture.isDone())
    {
        CompletableFuture.allOf(modelRenderableCompletableFuture)
                .thenAccept((Void avoid) -> {
                    setImage(image);
                }).exceptionally(throwable -> {
                    return null;
        });
    }
    setAnchor(image.createAnchor(image.getCenterPose()));
     Node node = new Node();
     Pose pose = Pose.makeTranslation(0.0f,0.0f,0.25f);
     node.setParent(this);
     node.setLocalPosition(new Vector3(pose.tx(),pose.ty(),pose.tz()));
     node.setLocalRotation(new Quaternion(pose.qx(),pose.qy(),pose.qz(),pose.qw()));
     node.setRenderable(modelRenderableCompletableFuture.getNow(null));
 }