EasyAR 3.0.1 Surface Tracking Camera didn't work on Android

0 votes
asked Jul 30, 2019 by asepsaepudin (170 points)
retagged Jul 30, 2019 by asepsaepudin
I trying to build HelloAR_SurfaceTracking scene to android but the result is black screen. And I didn't see any error on console.

If i play it on unity editor, the screen is work well showing the image on my webcam.

This black screen only happened in surface tracking, if I create an image tracking scene, its normal and work well.

2 Answers

0 votes
answered Jul 30, 2019 by zhangpengar (3,060 points)
Surface Tracking requires camera2 on Android which has compatibility problems on some devices, especially on devices manufactured with Android 5.0 and 5.1.

Can you provide your device model name and Android version?
commented Jul 30, 2019 by asepsaepudin (170 points)
I am using Redmi note 7 run on Android version 9.
commented Jul 30, 2019 by asepsaepudin (170 points)
I try to use my old phone runing on android 6 and only have 1 rear camera and its working. but the tracking is realy bad..
Redmi note 7 have 2 rear camera, I think this second camera is only for depth sensing, Is it maybe caused the problem?
+1 vote
answered Sep 1, 2019 by niqui611 (190 points)

i changed the camera size of the "AR Session" script in the scene to X (1920), Y (1080) and it worked on my redmi note 7

Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...