Alternative for LoadfromJsonFile in easy ar sense 3.0

0 votes
asked Jan 23, 2020 by raviraj (400 points)

I am using the LoadfromJson file to get the path of the image in sense 2.0

So how can I use this method in 3.0, need help pls.

Targets.json :

{ "images" : [ { "image" : "/storage/emulated/0/.hiddenFolder/image.jpg", "name" : "unique" } ] }

I have used like this in sense 3.0 

path = "/storage/emulated/0/.hiddenFolder/image.jpg";
ImageTarget target = ImageTarget.createFromTargetFile(path,StorageType.Assets);
but doesn't work.
need this help ASAP.

1 Answer

0 votes
answered Jan 23, 2020 by kenn (18,750 points)
Please reference the samples and documents first. API has changed.
commented Jan 23, 2020 by raviraj (400 points)
This is my tagets.json

{
  "images" :
  [
    {
      "image" : "/storage/emulated/0/.hiddenFolder/image.jpg",
      "name" : "unique"
    },
    {
      "image" : "namecard.jpg",
      "name" : "namecard"
    }

  ]
}

loadfromimgae method  is able to detect namecard but not the unique one.
please help.
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...