Closed suraj-0387 closed 4 years ago
Closing this thread for now. If there are still issues, pls reopen
please reopen this issue as I didn't got any solution for it
I am working to integrate mediapipe handtracking application with Arcore(Sceneform).I added arcore dependencies in mediapipe code and made few changes to it.
Did you make any progress on this? How did you add ARCore to mediapipe hand tracking app? I am interested in trying this for Android.
please reopen this issue as I didn't got any solution for it
Facing the same. Did we have any solution for this ?
+1
+1
hi @boehm-e , i see this issue closed. How can we reopen this ?
@mohdahk we can't they just decided this issue was solved 🙄
@boehm-e i have opened a new issue with reference to this issue. You can post in here. #751
I am working to integrate mediapipe handtracking application with Arcore(Sceneform).I added arcore dependencies in mediapipe code and made few changes to it.I added a arfragment in the mediapipe code added surface holder callback to Arsceneview of sceneform(Adding a code below).After doing the changes I was able to see plane detector hand of arcore as well as mediapipe hand tracking but the application crashes when I try to open the app for the second time.Also when I try to relaunch the app for second time (fresh installation) the app only shows me black or white screen.I am adding a source code (changes that I had done) as well as error which I am getting.Please help me to integrate.
Changed code private void setupPreviewDisplayView() { previewDisplayView.setVisibility(View.GONE); arFragment = (ArFragment) getSupportFragmentManager().findFragmentById(R.id.ux_fragment); arFragment.getArSceneView().setVisibility(View.GONE); arFragment.getArSceneView().getHolder().addCallback( new SurfaceHolder.Callback() { @Override public void surfaceCreated(SurfaceHolder holder) { processor.getVideoSurfaceOutput().setSurface(holder.getSurface()); }
Error Process: com.example.handtrackinggradle, PID: 23620 java.lang.RuntimeException: Error during attachToGLContext (see logcat for details) at android.graphics.SurfaceTexture.attachToGLContext(SurfaceTexture.java:289) at com.google.mediapipe.components.ExternalTextureConverter$RenderThread.setSurfaceTextureAndAttachToGLContext(ExternalTextureConverter.java:187) at com.google.mediapipe.components.ExternalTextureConverter.lambda$setSurfaceTextureAndAttachToGLContext$1$ExternalTextureConverter(ExternalTextureConverter.java:111) at com.google.mediapipe.components.-$$Lambda$ExternalTextureConverter$5RBq2uHoPl06wf2nG84kcgcgP_U.run(Unknown Source:8) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:214) at com.google.mediapipe.glutil.GlThread.run(GlThread.java:134) 2019-12-13 04:44:59.014 23620-23718/com.example.handtrackinggradle E/native: loge.h:15 DataSourceMetrics: kFirstGlCallback: 567.448154ms 2019-12-13 04:44:59.016 23620-23719/com.example.handtrackinggradle E/native: loge.h:15 CameraMetrics: FirstCaptureComplete: 440.307692ms 2019-12-13 04:44:59.016 23620-23716/com.example.handtrackinggradle E/native: loge.h:15 DataSourc