Can you dynamically update JPG targets from a database?

0 votes
asked Nov 19, 2017 by cmyatt (120 points)
Newbie question: We are wanting to have a admin site to add new targets (JPG). Is there an easy way to push/pull these to the Andriod/IOS app? ie on start up of app?

1 Answer

0 votes
answered Nov 26, 2017 by nicmds (420 points)
Yes, you can do that.

Put an image with some name like "ImageTarget.jpg" on the Persistent DataPath of the user. Then, set the Path to the ImageTarget for EasyAR as "persistentDataPath"+ImageTarget.jpg.

Whenever the admin chooses a new JPG to be the ImageTarget, simply update the image on the Persistent DataPath. And make the user update it too when you startup the app.
commented Nov 26, 2017 by cmyatt (120 points)
thanks. Would this work with SDK Pro or would we need CRS?
commented Dec 7, 2017 by nicmds (420 points)
Well, I've done it using the free SDK with Unity. Probably works with Pro. :)
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.