TreeWalks / tree-walk-guide

CSU Fresno Tree Walk AR Guide (powered by a companion website, Geospatial API and semantics)
https://play.google.com/store/apps/details?id=dev.csaba.armap.treewalk
Apache License 2.0
0 stars 0 forks source link

The blending of the camera image with the semantics data is crashing #10

Closed MrCsabaToth closed 1 year ago

MrCsabaToth commented 1 year ago

Needs to be debugged ASAP

MrCsabaToth commented 1 year ago
E/BLASTBufferQueue: BLASTBufferItemConsumer::onDisconnect()
E/AndroidRuntime: FATAL EXCEPTION: GLThread 3401
    Process: dev.csaba.armap.treewalk, PID: 25755
    java.lang.AssertionError: Assertion failed
        at dev.csaba.armap.treewalk.helpers.ImageUtilsKt.imageToBitmap(ImageUtils.kt:14)
        at dev.csaba.armap.treewalk.TreeWalkGeoRenderer.getSemanticsBlendedFrame(TreeWalkGeoRenderer.kt:546)
        at dev.csaba.armap.treewalk.TreeWalkGeoRenderer.onDrawFrame(TreeWalkGeoRenderer.kt:198)
        at dev.csaba.armap.common.samplerender.SampleRender$1.onDrawFrame(SampleRender.java:64)
        at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1593)
        at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1272)
MrCsabaToth commented 1 year ago

https://github.com/crow-misia/libyuv-android/blob/main/sample/src/main/java/app/MainActivity.kt https://stackoverflow.com/questions/28944864/integrating-libyuv-to-my-android-studio-project/75219506#75219506 https://github.com/android/camera-samples/blob/main/CameraUtils/lib/src/main/java/com/example/android/camera/utils/YuvToRgbConverter.kt

MrCsabaToth commented 1 year ago

https://stackoverflow.com/questions/75227966/how-to-rotate-and-a-bitmap-or-media-image-from-landscape-to-portrait-w-x-h-h https://stackoverflow.com/questions/75227417/how-to-obtain-screen-aspect-ratio-unaugmented-camera-image-in-an-arcore-applicat

MrCsabaToth commented 1 year ago

Version 2 (1.2) released with the rehauled feature