Start a new topic

Two issues with object target creation -- response of "scheduled" status does not go away, and using XML in the metadata

 Hello. We are testing Wikitude's cloud recognition service, and are having two issues:


* First, we have used the API to successfully create a target collection. If we then use the API to create an image target that does NOT have metadata in the target collection, we get a json response saying the target object has a status of 'Scheduled' -- but this scheduled status does not go away, and no image target shows up in the target collection on your studio.wikitude.com admin pages.


Here is the json response from one of the target object creations:


{"status":"SCHEDULED","inputParams":{"userId":"5b634d6a1a006502be74d405","resource":{"fov":"40","uri":"https://adeverywhere.s3.amazonaws.com/Uploads/AdEverywhere/SiteUploads/MC/Coupons/280/PMP0001483560-01_hr.jpg"},"name":"Test_Image_1"},"estimatedStart":1534876577974,"estimatedEnd":1534876582974,"estimatedLatency":5000,"generationId":"uCL1JHtf7n","created":1534876575974}


The API tool for getting all image targets in a collection returns an empty json array, and the API tool for checking the status of an image target generation returns errors like this:


Cannot GET /cloudrecognition/objectTargetCollection/5b7c5617b9711412ca909f6a/generation/target/uCL1JHtf7n



* The second issue is putting XML in the metadata sent to Wikitude for an image target object. (We already have metadata for the images we want recognized in XML format.)  Your documentation specifies that arbitrary json can be included in the metadata, so we created a json object to contain the XML. The resulting body is valid json (tested and validated successfully at JSONLint.com) -- but we get an "Internal Server Error" response from Wikitude. Is this a feasible approach?


Here is the json body we are sending to the API to create the image target:


{"name": "Test_Image_3", "resource": {"uri": "https://adeverywhere.s3.amazonaws.com/Uploads/AdEverywhere/SiteUploads/MC/Coupons/280/PMP0001483598-01_hr.jpg?id=AC0F8A99-F3B6-03B2-14700F83121CAEAB", "fov": "40"}, "metadata": {"metadata_xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <MetaData> <Augmentation_Type><![CDATA[Business Profile]]></Augmentation_Type> <BizProfile> <Business_Name><![CDATA[Via Toscana]]></Business_Name> <Business_Logo><![CDATA[https://adeverywhere.s3.amazonaws.com/Uploads/AdEverywhere/AccountLogos/15/69/via_toscana_logo.jpg]]></Business_Logo> <Business_Logo_Width><![CDATA[500]]></Business_Logo_Width> <Business_Logo_Height><![CDATA[93]]></Business_Logo_Height> <Business_Tagline><![CDATA[Tuscan cuisine made with farm fresh ingredients]]></Business_Tagline> <Business_Description><![CDATA[Opened in 1998 by Louisville residents Rob and Krista Castellino, Via Toscana continues both family traditions and the rich Italian heritage of Louisville. So, relax and enjoy this Boulder County original - as family.]]></Business_Description> <Business_Website><![CDATA[http://www.ViaToscana.com]]></Business_Website> <Business_EMail><![CDATA[info@viatoscana.com]]></Business_EMail> <Locations> <Location> <Location_Name><![CDATA[356 McCaslin Blvd]]></Location_Name> <Location_Primary><![CDATA[1]]></Location_Primary> <Business_Address_1><![CDATA[356 McCaslin Blvd]]></Business_Address_1> <Business_Address_2><![CDATA[]]></Business_Address_2> <Business_City><![CDATA[Louisville]]></Business_City> <Business_StateRegion><![CDATA[Colorado]]></Business_StateRegion> <Business_ZipCode><![CDATA[80027]]></Business_ZipCode> <Business_Country><![CDATA[US]]></Business_Country> <Business_Phone><![CDATA[303.604.6960]]></Business_Phone> <Business_Hours_Mon><![CDATA[]]></Business_Hours_Mon> <Business_Hours_Tue><![CDATA[]]></Business_Hours_Tue> <Business_Hours_Wed><![CDATA[]]></Business_Hours_Wed> <Business_Hours_Thu><![CDATA[]]></Business_Hours_Thu> <Business_Hours_Fri><![CDATA[]]></Business_Hours_Fri> <Business_Hours_Sat><![CDATA[]]></Business_Hours_Sat> <Business_Hours_Sun><![CDATA[]]></Business_Hours_Sun> <Latitude><![CDATA[39.950169]]></Latitude> <Longitude><![CDATA[-105.164668]]></Longitude> </Location> </Locations> </BizProfile> <AugmentationData> <Augmentation_Audio_URL><![CDATA[]]></Augmentation_Audio_URL> <Augmentation_Video_URL><![CDATA[]]></Augmentation_Video_URL> <Augmentation_Image_URL><![CDATA[]]></Augmentation_Image_URL> <Product_Link> <Product_Title><![CDATA[]]></Product_Title> <Product_URL><![CDATA[]]></Product_URL> </Product_Link> </AugmentationData> </MetaData>"}}


Thank you!


Login or Signup to post a comment