In the Cloud Recognition sample app, I tried running the program by creating a new database of image and tried to redirect to the book url by using samplebook1.json in the metadata package. Its working. Now I want to redirect to a specific url to be mentioned by me. Hence I tried creating a custom metadata package like this,
[ { "targetid":"aee1e5e0cb3443e6a793c7fa8e891509", "title": "Ramanuja", "bookUrl": "http://www.ramanuja.org/", "author": "Mohan", "average rating": "4", "# of ratings": "30", "list price": "39.99", "your price": "21.99" }]
and so I ignored mServerURL in CloudReco.java file and the program gets terminated after scanning the right image. But I checked the Log, I get the complete the metadata package as a string in the following variables
bookJSONUrl, mBookJSONUrl, mBookDataJSONFullUrl.
I want to know how to individually get the variables (like bookUrl) and redirect to the site. I am new to this sdk, can anyone tell me what would be the error in termination of program and how to get forwarded to specific url ?
In Cloud Recognition sample, want to use new metadatapackage
Hi, you cannot do what you describe using the Cloud Reco sample;
this is due to some misunderstanding on the sample; the part of the Vuforia SDK which handes the Cloud simply scans your image and tries to match it with an image target on the Cloud;
In Cloud Recognition sample, want to use new metadatapackage
Hi AlessandroB,
I understood that the SDK sample is for sample purpose only. But I want to create a new database i.e. a new json object, and get redirected to the weblink specified in the metadata package. How to accomplish this ? I am new to this SDK, can you guide me ?
In Cloud Recognition sample, want to use new metadatapackage
Hi,
I will try to make my previous message a bit clearer:
the problem is that the Book data is returned by a specific database used by the sample; the relevant code is in GetBookDataTask (see CloudReco.java).
In particular check this code: