title: How can i scan a qr code from ARScene Camera usin ARCORE
body: <p>Here I need some suggestion or a want to a way of doing this</p>
  <p>Scenario: i want to scan a qr code in the ar scene and when i scan the qr code what ever content is there in qr code i will place in the ar scene here i dont want to use google vision instead i want to use the below package but the below package opens camera instead i want to use it in the AR scene it self</p>
  <p>I used this package for qr scan <a href="https://github.com/zxing/zxing" rel="nofollow noreferrer">https://github.com/zxing/zxing</a></p>
  <p>below is my ar code</p>
  <pre><code>public class MainActivity extends AppCompatActivity {
  
      private ArFragment arFragment;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          arFragment = (ArFragment) getSupportFragmentManager().findFragmentById(R.id.arFragment);
          arFragment.setOnTapArPlaneListener((hitResult, plane, motionEvent) -&gt; {
            Anchor anchor = hitResult.createAnchor();
              ModelRenderable.builder()
                      .setSource(this, Uri.parse(&quot;anchor.sfb&quot;))
                      .build()
                      .thenAccept(modelRenderable -&gt; addModelToScene(anchor,modelRenderable))
                      .exceptionally(throwable -&gt; {
                          AlertDialog.Builder builder = new AlertDialog.Builder(this);
                          builder.setMessage(throwable.getMessage()).show();
                          return  null;
                      });
          });
      }
  
      private void addModelToScene(Anchor anchor,ModelRenderable modelRenderable){
          AnchorNode anchorNode  = new AnchorNode(anchor);
          TransformableNode transformableNode  = new TransformableNode(arFragment.getTransformationSystem());
          transformableNode.setParent(anchorNode);
          transformableNode.setRenderable(modelRenderable);
          arFragment.getArSceneView().getScene().addChild(anchorNode);
          transformableNode.select();
      }
  }
  </code></pre>