Log in or register to post comments

Connect cloud database with sample appliction vuforia

March 26, 2013 - 5:30am #14

 

So I downloaded a sample app from the vuforia developer site: CloudRecogniton-2-0-7.

I downloaded the sample code and i managed to make it work on my android device. Now I want the program to be able to do the recognition with pictures i have uploaded myself. Therefor I created a cloud database where I added pictures as targets. Using the instructions.

But how can I use this cloud database to work with my sample application?

 

Thanks in advance!

Connect cloud database with sample appliction vuforia

March 26, 2013 - 6:43am #13

Connect cloud database with sample appliction vuforia

March 26, 2013 - 7:01am #12

Thank you!

I followed the steps but I want to show different information than the sample books.

I have created a text file: book.txt with the following content:

 

{"title":"Standbeeld Rubens Groenplaats",
"author":"Test",
"targetid":"7d9a68db455b4636bc41477e92b402ac",
 
Unfortunattely the picture I uploaded in my cloud database is not recognized.
 
Any ideas?
 

Connect cloud database with sample appliction vuforia

March 26, 2013 - 7:06am #11

Hi, as explained in the link I was referring to, the sample only works if you put one of those strings (i.e. one of "samplebook1.json" or "samplebook2.json" or "samplebook3.json") in your metadata file;

if you want to show your own custom data, you can take inspiration from the sample implementation, but how you achieve that is completely up to you (i.e. the sample just shows a possible technique to retrieve some "Book data" based on some sample-specific metadata, but it is just for illustration purposes)

 

Connect cloud database with sample appliction vuforia

March 26, 2013 - 7:52am #10

Ah i see!

But even when my file contains only "samplebook1.json" it is not working..

 

 

Connect cloud database with sample appliction vuforia

March 26, 2013 - 7:53am #9

Ok, what is the tracking Rating of your targets ?

 

Connect cloud database with sample appliction vuforia

March 26, 2013 - 7:58am #8

3/5 so the image will track in most conditions i think.

 

 

Connect cloud database with sample appliction vuforia

March 26, 2013 - 8:05am #7

Ok, rating of 3 stars should be sufficient;

have you tried tapping on the screen of the device with your finger while aiming at the target ? this will trigger auto-focus, making the device camera to focus better on the physical target and getting a sharper (less blurry) image, which might possibly improve your chances of recognition.

 

Connect cloud database with sample appliction vuforia

March 27, 2013 - 4:27am #6

I tried it a bunch of times but still the application does not recognize the picture i have uploaded in my cloud..

Even tried a picture with a 4/5 rating but still nothing.

What am I doing wrong? 

Connect cloud database with sample appliction vuforia

March 27, 2013 - 4:50am #5

Are you sure that you uploaded the metadata with exactly this line:

samplebook1.json

(and nothing else than just that line) ?

That's the only thing that can make it not work.

 

Connect cloud database with sample appliction vuforia

March 27, 2013 - 5:47am #4

Yeah my .txt clearly contains only:samplebook1.json.

I have no idea what's wrong

Connect cloud database with sample appliction vuforia

March 27, 2013 - 5:55am #3

Do you see anything relevant (error messages) in the application Logs ?

 

Connect cloud database with sample appliction vuforia

March 27, 2013 - 6:27am #2

It prints this error message multiple times. I don't know if it is relevant

  • 03-27 14:24:17.489: ERROR/Adreno200-EGLSUB(26635): Enter: GetBackBuffer(), surface: 0x309788, bufid: 1
  • 03-27 14:24:17.489: ERROR/Adreno200-EGLSUB(26635): Return: GetBackBuffer(), TRUE

I also noticed that the image I uploaded is very 'blurry' in my cloud when i click on it. 

However it is very clear when I open this image on my computer.

Maybe this is also a problem?

 

Connect cloud database with sample appliction vuforia

March 27, 2013 - 8:09am #1

I would not worry about the blurriness of the Target Manager preview, provided that the rating is 3 stars or above;

just to recap:

- metadata is OK (as we already clarified)

- sample code: you changed the client keys (access and secret) with your keys, and rebuilt the project

- the videobackground is displayed, you just don't see the augmentation on your target (as if it were not recognized)

Can you confirm the above ?

Then, one test to do is to put a Log in the renderFrame function of CloudReco.cpp, in this code:

  
     ....

    // Did we find any trackables this frame?
    if (state.getNumTrackableResults() > 0)
    {
     
        trackingStarted = true;
 

change it to:


    LOG("State num trackable results: " + state.getNumTrackableResults());

    // Did we find any trackables this frame?
    if (state.getNumTrackableResults() > 0)
    {
     LOG("We got one trackable result from Cloud Reco !!!!");

        trackingStarted = true;

This will tell you if it is really the image target which is never detected, or if it is just a problem with the metadata.

 

 

 

Log in or register to post comments