Is there any restriction for target images?

0 votes
asked May 23, 2018 by cleber (170 points)

Hello guys,

I have had problem with target images. I am developing my app on Unity. All ImageTarget's work fine and all target images are correctly recognized by the app when I run it on Unity. However, when I deploy the app to my Android phone, 2 of my target images can't get recognized. I have a total of 4 images in this app to be recognized: 2 photos of people, which work fine on PC and Android, and 2 pictures with white background, which work fine on PC but not on Android. You can see the not working images here.

I have tried resizing and inverting colors for those images, but it did not work. I also tried to set the ImageTarget to use a different image (a picture of myself, in this case) and it worked fine, which means the problem is not in the configuration of the ImageTarget.

So, my question is, is there any restriction for target images that would explain why my images are working on PC but not on Android? If not, can you guys help me figure out what is wrong with my app? I have been stuck in this problem for a long time!

Thank you very much.

1 Answer

+1 vote
answered May 23, 2018 by albert52 (31,850 points)
selected Jun 6, 2018 by cleber
 
Best answer
Could you please send your picture to see it? What is the phone model and system?
commented May 23, 2018 by cleber (170 points)
Hi Albert,
I added a picture of me to the folder in the link of my question. When the ImageTarget component uses that picture, it works correctly by identifying my picture and showing the AR element (a cube). Is that picture what you asked for?

My phone is a Nexus 6P running Android 8.1.0.

Thank you for your answer.
commented May 30, 2018 by albert52 (31,850 points)
The main problem is that your two image textures are not rich enough (there's almost only one color), which can lead to unstable tracking
commented Jun 6, 2018 by cleber (170 points)
Thank you @albert52.

In case anyone ends up here, I also posted this question on StackOverflow and I got a similar answer: https://stackoverflow.com/questions/50499863/is-there-any-restriction-for-target-images-on-easyar/50531330#50531330

Good luck to you all.

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