how to create metadata For Upload
Thnak you for answer
I've read many threads and every time someone asks for a sample, the reply is "it can be whatever you want". That makes absolutely no sense
Well, it does make sense. In fact, the metadata will be returned to the App via the Vuforia API getMetadata() as a string; once your app has got that string, it will do whatever the app is supposed to do with such piece of text. I think here you are probably confusing two aspects:
You should not confuse the Books sample specific implementation with the Cloud Recognition feature in general...
The metadata used for the Targets in the Books sample simply contains a string which is one of:
samplebook1.json, or samplebook2.json, or samplebook3.json
Once that metadata is returned to the Books sample code, it is then sent to another server which contains the Books data for the sample; this second server has nothing to do with Cloud Reco (and nothing to do with the Cloud) and is only meant to work for the Books sample and to return some data about a specific book; this data is formatted in JSON format, but again, this is not the metadata, this is an additional piece of data returned by the sample-specific server.
step through the sample code with a debugger, so to understand what the sample really does, what is the part that actually relates to Cloud Reco metadata, and what is the part that is just sample-specific...
Also, you may find this useful:
Could someone please post a sample of a metadata file for Cloud Reco? I've read many threads and every time someone asks for a sample, the reply is "it can be whatever you want". That makes absolutely no sense. The file obviously has to have some sort of a format since it gets sorted into a string and passed through into the app. I made a very simple txt meta data file and it is not working. The wheel of death in the "Books" example just keeps spinning endlessly while it does work with the sample covers. So please someone for the love of all that is dear, post an example of a metadata file for "Books". I will forever be in your debt.
I actually have a question along the same lines. I'm using the Books sample and want to use my own book covers instead of the built in ones, but for the life of me I can't figure out where the book metadata is called from within the example. With the VideoPlayback example, there were data sets, but I can't seem to find where the datasets are called in the Books sample
Thank you for your help in advance
Hi, the metadata is an optional piece of information; you can upload an image without metadata and the image will still be recognized by Cloud Reco;
in general, the metadata can be any text blob of your choice; for instance a string like "Hello, this is my metadata" would be perfectly acceptable;
the actual meaning of the metadata content is purely application-specific; when an Image target is recognized through the Cloud Reco service, Vuforia will allow you to retrieve the metadata associated to the recognized target; once you have retrieved the metadata in your application code, you can use it the way you want;
for example, in the CloudReco sample, the metadata of the sample targets (the book covers) contain strings like "samplebook1.json", or "samplebook2.json"; when the sample app retrieves the metadata of one of those recognized targets, it will use those strings to retrieve some book data from another database (which is just used for the purposes of the sample) and will then display an augmentation based on those book data.
Now, suppose you just want to test your own Cloud image targets (from your own Cloud DB) using the CloudReco sample, what you would need to do is to create a simple text file (for instance call it "my_metadata.txt"), then open the file and put this line into it:
Then save the file, go to the Target Managaer and upload the metadata file above (my_metadata.txt) .
Are you sure you want to delete this message?
Are you sure you want to delete this conversation?