Log in or register to post comments

Time to update metadata

February 11, 2013 - 8:44pm #1

How long can it take to update a target metadata.

I noticed some targets takes about 20 minutes to update metadata. That's not good, but if that can't be changed, at least knowing the time it can take would be nice.

The targets metadata length are about 1KB

Thank you.

Time to update metadata

February 18, 2016 - 5:06am #48

How do I load only website instead of books of information. 

Please update view. 

Time to update metadata

February 12, 2014 - 8:00am #47

@ vikas100,

see reply to the same question you posted here:

https://developer.vuforia.com/forum/android/cloud-recognition-metadata

 

Time to update metadata

February 12, 2014 - 6:26am #46

Hi,

I am working on cloud recognition.

I had passed the url in metadata.txt while uploading target image on cloud database.

Now i am not getting that how to retrieve it????????????

Plz Help,Thanx in Adv....

 

Time to update metadata

October 27, 2013 - 10:31am #45

Hi...i've little bit problem

i finishid create json file : http://www.cufidgames.com/sig/samplebook1.json

it showing like this:

{"title":"Cloud Recognition in Vuforia","author":"Ashutosh","average rating":"4","# of ratings":"41","list price":"43.99","your price":"43.15","targetid":"346550bf91bc46518ea3e0f78a87858b","thumburl":"https://developer.vuforia.com/samples/cloudreco/thumbs/01_thumbnail.png","bookurl":"https://developer.vuforia.com/samples/cloudreco/book1.php"}

 

But my app cant connect to server (json) , (target has been detcted)

my log cat: 

Couldn't get books. e: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x519fd218: Failure in SSL library, usually a protocol error

where I should start fixing ??

Time to update metadata

June 26, 2013 - 6:56am #44

thanks alessandroB.

I successfully detected the target image now. hanks for your answer.

why my target does not match the picture that is on my database?
picture shown is not my picture, but the picture is still long.

 

Time to update metadata

June 26, 2013 - 6:41am #43

The "rating" is the tracking rating (also known as "star rating") associated to your image target.

If you go to the Target Manager and you click on your target, you will see the tracking rating associated to your targets.

This is expressed as a number of stars (from 0 to 5).

If the star rating is low (e.g. 0 or 1 stars), then this might be the reason why your targets are not recognized.

Please, have a look at our developer guide, as these concepts are explained there in details:

https://developer.vuforia.com/resources/dev-guide/image-targets

 

Time to update metadata

June 26, 2013 - 6:13am #42

thanks for reply alessandroB

I do not understand for the rating. :(

in here I have created a database and metadata that contains "samplebook1". json.
I have some pictures and I done put the
accesskey  my database on the project cloudreco.h.
but when sempel is on the run does not fit with the image that is in my database.
sorry for my bad english.

please give me step by step in building an image corresponding targets.

 

Time to update metadata

June 25, 2013 - 10:44pm #41

If the image is not recognized, and you are sure that you uploaded the right metadata and you are using your database client keys in the sample, then it could be that your image has insufficient rating . Could you check the rating ?

 

Time to update metadata

June 25, 2013 - 1:00pm #40

good morning

hi AlessandroB

i have done that there is only "samplebook1.json" in the file. but also the it is still not recognising my images.

and please tell me also that how we can put our content in metadata, if we want to get our information.

I want my images appear.

 

Please reply me,

thank you very much

 

Time to update metadata

March 9, 2013 - 8:33pm #39

HIII Plz tell me that when it recognize the images then what goes to Vuforia Database..

Time to update metadata

March 1, 2013 - 2:41am #38

thankss

Time to update metadata

March 1, 2013 - 12:59am #37

Target dimensions just represent the size of the target in 3D space (for instance, you could think of your printed target size in millimeters, then you could set the size in millimeters, for instance an A4 paper is typically 247 millimeters wide, so you could use 247 as width.)

 

Time to update metadata

March 1, 2013 - 12:44am #36

Thanks AlessandroB

I am very confused whae i give the Target Dimension in Add Target. Could you tell me that what is the concept behind this.

 

Thanks in Advance.

Time to update metadata

February 28, 2013 - 12:39am #35

Hi, 

to create high quality image targets (i.e. images that are suitable for recognition and tracking), you need to make sure that:

  • the images have a sufficient amount of detail (i.e. they are rich in features); for instance a picture of a uniformly blue sky with no details will not work, while a picture of a city with lots of different details will probably work well
  • the features (details) should be well distributes across the image
  • should avoid repetitive patterns like chessboard patterns or similar (prefer "natural" features)
  • the image should have sufficient contrast 

Also, once you upload an image to the Target Manager, the image will be given a "star-rating"; ideally this should be 4 or 5 stars (for best results); however images with 2 or 3 stars can also work relatively well;   note: very often, the star-rating of an image can be improved by increasing the local contrast.

For more details on this subject, please check this page (it contains all the information you need):

https://developer.vuforia.com/resources/dev-guide/image-targets

and here too:

https://developer.vuforia.com/resources/dev-guide/image-target-enhancement-tricks

 

 

Time to update metadata

February 27, 2013 - 9:12pm #34

Thanks AlessandroB 

 

I have done all thing and its working well.

One thing i would like to ask that how can we create custom images, and what shoold be the quality of images for scanning. 

 

could u plz tell the specification for clear search..??

Time to update metadata

February 26, 2013 - 3:51am #33

Hi

I was tring it, but it shows message - force closed, and not access the url.

Time to update metadata

February 26, 2013 - 12:29am #32

Hi, you could put the web-page URL in the metadata of each target (for instance, instead of putting the string "samplebook1.json" in your metadata, you could put a string like "http://www.myorg.com/mypage.html"); then, in the CPP code (e.g. CloudReco.cpp) you can get the target metadata and so retrieve the URL string and use that to open the webpage for that URL.

 

Time to update metadata

February 25, 2013 - 9:41pm #31

I want that when i scan a image then after scanning the image it shooul open the url on based of that image

Time to update metadata

February 25, 2013 - 9:38pm #30

Thankss  AlessandroB

I have done this but this is opning google.com for all the image ,but i want that it should open diffrent site for diffrent images.

Time to update metadata

February 25, 2013 - 7:07am #29

You will probably need to start a new Activity and passing the "google.com" URL (or whatever URL you like) to it; you can take inspiration from the code in CloudReco.java:

 public void startWebView(int value)
    {
        // Checks that we have a valid book data
        if (mBookData != null)
        {
            // Starts an Intent to open the book URL
            Intent viewIntent = new Intent("android.intent.action.VIEW",
                    Uri.parse(mBookData.getBookUrl()));

            startActivity(viewIntent);
        }
    }

 

Time to update metadata

February 25, 2013 - 12:20am #28

Sorry AlessandroB for taking this discussion long,

but 1 place where i am wondering that

 

Let me suppose   this is my datbase.

{ "title":"Cloud Recognition","author":"abhishek keshri","average rating":"4","# of ratings":"41","list price":"3.99","your price":"4.15","targetid":"5eed74235bb746d9bb9020203d378217","bookurl":"https://www.google.com" }

I have created this metadata , and i just want to open google.com after scanning my image.

I just have to do  "to open google.com" after scanning the image for this plz help me.

 

Time to update metadata

February 25, 2013 - 12:06am #27

Hi  abhishekkeshri1111, and ashutoshgohil,

as I already explained, creating your own database (similar to the Book database used by the sample) is not a feature supported by the Vuforia SDK, it is just something made ad-hoc for the CloudReco sample;

so, the way you build your own database with your own custom data is completely arbitrary and application-specific (and as such it is not related to Vuforia);

it is beyond the scope of this Forum to discuss this topic. 

Thanks for your understanding.

 

Time to update metadata

February 24, 2013 - 10:59pm #26

Hi,

Would you tell me how we store own data in my Cloud database in vuforia using vws.

I am able to recognize the data but it shows ur database details, I want to set my information in database.

 

 

 

 

Time to update metadata

February 24, 2013 - 9:24pm #25

R u busy AllesendroB.???

Plz reply me.

Time to update metadata

February 24, 2013 - 5:14pm #24

Hiii AllessendroB ,Goodmorning

firstly Thanks for replying,

Sorry for stupid Question,

But i am not able to build  our own database in vuforia, plz tell me the procedure to build our own databse. 

 

Plz correct me if i am wrong..

I crated this database with mydatabase.json.

{"title":"cloud databse","author":"any name","average rating":"4","# of ratings":"41","list price":"43.99","your price":"43.15","targetid":"5eed74235bb746d9bb9020203d378217","thumburl":"https://developer.vuforia.com/samples/cloudreco/thumbs/01_thumbnail.png","bookurl":"https://www.google.com"}

I am new to this , so i have not clear idea for storing our database.

Thanks in advance.

 

Time to update metadata

February 24, 2013 - 1:57pm #23

Hi, as a I explained in my last message, the json database used by the CloudReco sample (containing the sample Book data in json format) is only meant for that specific sample (for illustrative purposes); 

so, you cannot store your own data in it;

that's the application-specific part that I was mentioning, and it is up to you to build your own database (or other mechanism to retrieve data based on the target metadata).

 

 

Time to update metadata

February 22, 2013 - 10:20am #22

Hii Plz tell me that how can i add my json file to   "https://developer.vuforia.com/samples/cloudreco/json/"  . i am not able to store my file in this json folder.

Time to update metadata

February 22, 2013 - 8:37am #21

hiii AlessendroB 

Thanks

but before that i want to ask that how i will store my information in database. like as same information(what ever samplebook1.json is retriving) if i want to store on database then what will i have to do. i will have to create our  own meta data but how i will store information in that.

 

Thanks in advance

Time to update metadata

February 22, 2013 - 5:48am #20

Hi,

first, I am happy to hear that you were able to make cloud reco work with your own images;

so, if I understand correctly, you managed to successfully retrieve and to display the Book data in the CloudReco sample using your own image from your Cloud DB.

Now, concerning your second question ("...to get our own information  from the database..."),  this is more application-specific; in practice, the CloudReco sample obtains the metadata associated with the recognized target (for instance, in your case, it retrieves the string "samplebook1.json" when your target "image1" is recognized) and then it uses that metadata to query another Database from which it can retrieve the Book data (which are represented by a JSON object with several attributes such as the title of the book, the author, the price, the rating, etc.).

The relevant code where the metadata are obtained from the recognized target is located in the class called CloudReco_UpdateCallback (in CloudReco.cpp), and the relevant code snippet in the sample is the following:

if (strcmp(result->getUniqueTargetId(), lastTargetId) != 0)
                        {
                            // If the target has changed then regenerate the texture
                            // Cleaning this value indicates that the product Texture needs to be generated
                            // again in Java with the new Book data for the new target
                            deleteCurrentProductTexture = true;

                            // Starts the loading state for the product
                            renderState = RS_LOADING;

                            // Copies the new target Metadata
                            snprintf(targetMetadata, CONTENT_MAX, "%s", result->getMetaData());

                            // Calls the Java method with the current product texture
                            createProductTexture(targetMetadata);

                        }

The relevant code which instead creates the so-called "product texture", i.e. the texture representing the Book data, is again in CloudReco.cpp:

void
createProductTexture(const char* targetMetadata)
{
    // Check that the JNI handles are setup correctly:
    JNIEnv* env = 0;

    if (javaVM != 0 && createProductTextureID != 0 && activityObj != 0
            && javaVM->GetEnv((void**)&env, JNI_VERSION_1_4) == JNI_OK)
    {

        env->CallVoidMethod(activityObj, createProductTextureID, env->NewStringUTF(targetMetadata));

    }
}

finally, the method called "createProductTextureID" is defined in Java, in the file CloudReco.java:

public void createProductTexture(String bookJSONUrl)
    {
        // gets book url from parameters
        mBookJSONUrl = bookJSONUrl.trim();

        // Cleans old texture reference if necessary
        if (mBookDataTexture != null)
        {
            mBookDataTexture = null;

            System.gc();
        }

        // Searches for the book data in an AsyncTask
        mGetBookDataTask = new GetBookDataTask();
        mGetBookDataTask.execute();
    }

The GetBookDataTask class represents a task which can connect to a Database and retrieve the Book data, based on the input metadata, by connecting to a server which is located at this URL (see code in GetBookDataTask.java):

private static final String mServerURL = "https://ar.qualcomm.at/samples/cloudreco/json/";

However, it is important to understand that this is just the sample implementation; the database containing the Book data is just used to demonstrate an example of what can be done by using metadata;

however, this is not a core feature of CloudReco (i.e. the Book database and server has nothing to do with CloudReco itself, it's just there for that specific usage of the example);

so, that is to say that if you want to exploit your metadata, you can do it in the way you like, there is no feature in Vuforia that supports something like the Book database out-of-the-box; 

so, this part really depends on your specific application requriements.

 

 

Time to update metadata

February 22, 2013 - 4:04am #19

Thanks a lot AlessandroB , i got succes for querying sample data by my image..

 

Now plz help me that to get our own information  from the database, and how i can send our metadata likeas "samplebook1.json"

 

So plz solve this i will be thankfull to you.

Again a lot of thanks.

Time to update metadata

February 22, 2013 - 2:52am #18

My last message was directed to ashutoshgohil

Time to update metadata

February 22, 2013 - 2:50am #17

Ya i have done that there is only "samplebook1.json" in the file. but also the it is still not recognising my images.

and plz tell me also that how we can put our content in metadata, if we want to get our information.

Time to update metadata

February 22, 2013 - 2:43am #16

Hi ashutoshgohil,

as I was explaining in my previous message, when you upload a metadata for a given Image target using the Target Manager, you must upload a metadata file (for instance you can call it my_metadata.txt) which only contains the following string (if you want to make the Book cover appear in the Cloud Reco sample):

samplebook1.json

You don't need to put the actual content of the samplebook1.json file (as you did) in the metadata; such content is then retrieved by the sample application using a book database (which is just specific to the sample, it is not related to the Cloud DB).

 

 

Time to update metadata

February 22, 2013 - 2:29am #15

Hi,

I followed all instruction of cloud recognition, my program is compiled and executed successfully,

I hvae created cloud database, and

my metadata file is 

 

samplebook1.json
{
"title":"Cloud Recognition in Vuforia"
,"author":"Ashutosh",
"average rating":"4",
"# of ratings":"41",
"list price":"43.99",
"your price":"43.15",
"targetid":"346550bf91bc46518ea3e0f78a87858b",
}
 
 
 
but when I recognized vuforia image then it recognize but when I recognize my database image then their is no any operation is perrformed, I have passed all keys.
plz help me how to recognize image from my database

 

Time to update metadata

February 22, 2013 - 1:48am #14

Good morning. One little note: you must use the string samplebook1.json and not samplebook.json. Also, please check you email as I ahve replied to your PM with some requests about details on your account. Thank you.

Time to update metadata

February 22, 2013 - 1:17am #13

 

Hii good mrng

I have created my metadat with name "sample.txt" and the content is "samplebook.json" but it not still recognising our database,and plz tell me that how i can create our field in vuforia

Time to update metadata

February 21, 2013 - 10:00pm #12

Hii good mrng

I have created my metadat with name "sample.txt" and the content is "samplebook.json" but it not still recognising our database,and plz tell me that how i can create our field in vuforia

Time to update metadata

February 21, 2013 - 9:57pm #11

Hii Good Morning AlessandroB

 

i simply replaced all the code in sample.txt to "sample1.json". still it is not recognising, but it is accessing all sample images,that means i am not connected to database.

and 1 more thing is stucking in my mind that i am not passing my taregt id at any place then how it will recognise my particular target id.

Time to update metadata

February 21, 2013 - 10:30am #10

You're welcome.

Time to update metadata

February 21, 2013 - 10:19am #9

Thanks a lot for replying,

 

I am trying to do as  you say.

Time to update metadata

February 21, 2013 - 9:05am #8

Hi, please follow the instructions of my previous message; 

there is one mistake in what you did:  you uploaded a metadata file called "sample.txt" which contains this text:

 

var json=[

{"title":"Cloud Recognition in Vuforia","author":"Karina Borland","average rating":"4","# of ratings":"41","list price":"43.99","your price":"43.15","targetid":"5eed74235bb746d9bb9020203d378217","thumburl":"https://developer.vuforia.com/samples/cloudreco

That is incorrect;

actually, in order to work with the CloudReco sample, you need to replace the text above with just this string

samplebook1.json

i.e., your sample.txt file must simply contain that line of text (literally this text: 'samplebook1.json' and nothing else).

Then, if you put your client keys in CloudReco.h (note: use the client keys, not the server keys), and if your Image targets have good start-rating (e.g. 3 to 5 stars) then it should work without problems.

 

Time to update metadata

February 21, 2013 - 8:39am #7

 

Thanks for responding

 

I was trying for that but the same problem as it is not recognising the image from my database. I am telling that what i have done.

0- donload sample data and run it now it is scanning succeefull to vuforia images

1-created database

2- upload images

3-upload metadata  

sample.txt

(var json=[

{"title":"Cloud Recognition in Vuforia","author":"Karina Borland","average rating":"4","# of ratings":"41","list price":"43.99","your price":"43.15","targetid":"5eed74235bb746d9bb9020203d378217","thumburl":"https://developer.vuforia.com/samples/cloudreco/thumbs/01_thumbnail.png","bookurl":"https://developer.vuforia.com/samples/cloudreco/book1.php"}])

 

4-pass the key into cloud in cloudreco.h

I am also passing repository url for further refrence. Plz check  that 

"https://github.com/abhishekkeshri/vuforia-project/blob/master/src/com/qualcomm/QCARSamples/CloudRecognition/CloudReco.java"

"https://github.com/abhishekkeshri/vuforia-project/blob/master/jni/CloudReco.h"

Plz chk that 

thanks in advance

 

 

 

Time to update metadata

February 21, 2013 - 1:28am #6

Hi, to add metadata to your target in the Cloud DB, you have two main options:

  1. you can logon into the Target Manager in the vuforia website, click on your Cloud Database, select a target from the list and click on it, then click on "Metadata - Upload" or "Metadata -Change" button (located on the right of your target image) and upload a simple Text file (e.g. my_metadata.txt) which contains some text (for instance "Hello, I am a metadata" .... that text actually represents your metadata)
  2. use the VWS API; for instance you can use the UpdateTarget.java sample and specify some text (just a Java String) , as shown in the setRequestBody() method that you can find in such example.

One last thing: if you want to use the same metadata that are aused in our CloudReco sample, so to make a Book Cover appear when your target is recognized, you can use one of these Strings as metadata (at your choice; each of them corresponds to a different Book cover in the sample):

  1. samplebook1.json
  2. samplebook2.json
  3. samplebook3.json

I hope this helps.

Time to update metadata

February 20, 2013 - 9:10pm #5

Please tell me that how to create metadata??

Time to update metadata

February 20, 2013 - 6:05pm #4

Plz send any sample file for creating metadata, so that i can upload it in my database

Time to update metadata

February 12, 2013 - 9:13am #3

How are you adding the metadata, and how are you confirming that it's been added? It won't typically take 20 minutes. There may have been another factor at play.

Time to update metadata

February 11, 2013 - 10:30pm #2

Hi, the time taken to update a Cloud Target does not depend on the metadata size (e.g. 1 KB in your case);

at the moment there is no functionality allowing to estimate / predict such time; if you wish to have this feature, may I invite you to make a Post in our wish-list:

https://developer.vuforia.com/forum/general-discussion/wish-list

Thank you.

Log in or register to post comments