List
Wrong documentation
Posted Date: 2019-06-13 14:06     Edited Date: 2019-06-18 0:23     Writer: inactive

Please provide your development details as below;

1. SDK Version: 4.1.1
2. Development Environment: native IOS
3. Tracker/Scanner: Tracker
4. License Type(Free / Pro-One Time Fee / Pro-Subscription / Enterprise): Free

We can assist better if you attach screenshots of issues.

 

I try to use your sdk on IOS but it does not working.
I found a guide but some lines have missing/ wrong information.
 
in your documentation, you said use "TrackerManager.getInstance().addTrackerData("{\"image\":\"add_image\",\"image_path\":\"ImageTarget/Blocks.png\",\"image_width\":0.26}", true);"
 
but TrackerManager.getInstance() does not exist in Maxst IOS SDK. (I guess this is Java syntax)
 
could you give correct instruction?
 
That is your documentation for ios:(https://developer.maxst.com/MD/doc/4_1_x/ios/swift/ogl/image)
 

Train Target Image Instantly

If you want to use a raw image file as an image target without an offline training process via Target Manager, enter a JSON object as the first parameter of addTrackerData().

A sample JSON format is like below.

{
   "image":"add_image",
   "image_path":"ImageTarget/Blocks.png",
   "image_width":0.26,
}

The "image":"add_image" pair should be located at first. The value of "image_path" is an image path and the value of "image_width" is a real width (meter unit) of an image target. 
A sample code is like below.

TrackerManager.getInstance().addTrackerData("{\"image\":\"add_image\",\"image_path\":\"ImageTarget/Blocks.png\",\"image_width\":0.26}", true);

When copying to the assets folder, set the second parameter to true to indicate that it is a relative path and a file in the assets folder. If copying to external storage, enter the full path and set the second parameter to false. The instant training permits only jpg and png formats. An image width as a pixel size should be more than 320 and the best is 640. 

※ Instant training of an image takes twice as much time as loading a 2dmap. 
※ You must call loadTrackerData () after calling addTrackerData ().

Posted Date: 2019-06-14 0:44     Edited Date: 2019-06-14 2:40     Writer: inactive

hello cihan. 

The Java syntax is correct as you think. We made a mistake.

 

trackingManager.addTrackerData("{\"image\":\"add_image\",\"image_path\":\"ImageTarget/Blocks.png\",\"image_width\":0.26}");

 

You can use as above.

Thank you.

 

Leo

Maxst Support Team

Posted Date: 2019-06-17 19:05     Edited Date: 2019-06-17 19:05     Writer: inactive

Java syntax is ok but it is on the ios documentation.

Posted Date: 2019-06-18 0:23     Edited Date: 2019-06-18 0:23     Writer: admin

Hello cihan.

I know you use iOS. The answer I wrote is the syntax used on iOS.

 

Leo

Maxst Support Team