Android : How can I load targets from JSON string EasyAR 3.0 ?

+1 vote
asked Jul 10, 2019 by kvantum (380 points)
Please give me some example - there is no documentation on EasyAR 3.0 version

2 Answers

+1 vote
answered Jul 10, 2019 by zhnagjian (11,130 points)
Hello,

The feature of loading targets from Json string has been deleted. You can import from files or import using ImageTarget.createFromImageFile.

Best wishes!
+1 vote
answered Jul 15, 2019 by kenn (18,750 points)
Documentation is on the way.

As for the interface of loading targets from json string, it was removed. The old interface is most useful when you use code generated target configuration, but it was not necessary for us to provide the json string decoding. We remove the interface is because you can always do the same thing (define and encode/decode json structure) in your code very simply, or use a different structure (like xml or something else) to record target information. Instead, we now provide an interface <ImageTarget.createFromParameters> that takes all necessary parameters for one target, so that you can combine your own target description with this interface to load one or more targets.
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...