Log in or register to post comments

CloudeReco sample how to implement user target image

March 13, 2013 - 7:23am #1

hi  my requirement like this cloudeReco sample app only change scane the logo image and show the same logo when this image clicked it is goto website i created the cloude data base name afresh tech and i have accesskeys like server and client access key i don't know how to implement my clode data base into the cloudereco sample project as soon as possiple please help me.

CloudeReco sample how to implement user target image

March 20, 2013 - 10:21am #12

It is difficult to help when you have provided such little detail.

Essentially to get cloud reco working in your own database use the following steps:

  • Create a cloud database, noting the access and secret client keys
  • Populate it with the same 3 images, ensuring that you upload a metadata file containing "samplebook1.json" for the first, "samplebook2.json" for the second, and "samplebook3.json" for the third
  • Load up the Cloud Reco sample in XCode
  • Change the access and secret keys
  • Recompile and run and it should work.

 

 

At a more detailed level the idea is that when you scan a target it will return some metadata that lets you get additional information about the image from a separate external database.  This could be to do with price, ratings, tips etc. - this is what the metadata is for, and why the system allows you to store and retrieve it.

In the example the metadata for the samplebook1 is a simple text file containing the characters "samplebook1.json".  Then the sample adds a URL to the beginning of this (which is hardwired to the Vuforia web site) and this URL returns the actual JSON as shown below: 

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

So just to summarise if you take the existing sample, point it to your own cloud database with three targets and for each one specify a metadata containing "samplebook1.json" "samplebook2.json" "samplebook3.json" respectively, then you should get the same result.

Hope this makes sense.

To understand more, go through the Cloud Reco forum to understand the problems that others have encountered and perhaps you could learn from these.

 

N

CloudeReco sample how to implement user target image

March 20, 2013 - 7:46am #11

Hi NalinS

        what  problem occurs i don't know two times Successfully created ImageTarget.

 

asyncDownloadInfoForBookAtURL:url return null value and bad target found.as soon as possible help me.

  Thank you in Advance.

CloudeReco sample how to implement user target image

March 19, 2013 - 9:46pm #10

Thank you i will try it.

CloudeReco sample how to implement user target image

March 19, 2013 - 8:51am #9

So basically you will need to modify the sample if you do want it to be different, and you will need to work out how to do this for your own requirement.

If you look in BooksManager.m this is where the code uses the URL to get the JSON information and then uses that to get the bookinformation (including the locations of the PNG files) - hopefully this will help you to start.

Good luck.

N

CloudeReco sample how to implement user target image

March 19, 2013 - 7:47am #8

Thanks NalinS,

it very useful fro me and i have other question i create my json file in local drive like document folder.

it content of target id only i want implement image to this file,but your crating the thamnailurl and book url using url i don't need url file  i want select my pn g image from local drive as soon sn possible for do it.

Thank you in advance. 

 

 

CloudeReco sample how to implement user target image

March 19, 2013 - 7:05am #7

See this thread as it may help:

https://developer.vuforia.com/forum/cloud-reco-beta/debug-bad-target-found

Always worth searching the forums...

N

CloudeReco sample how to implement user target image

March 18, 2013 - 9:58pm #6

 

This my status for programming run

 

Successfully created new trackable 'afresh' with rating '2'. 

Successfully created ImageTarget.

bad target found

i need your help how to debeg the error bad target found.

 

i don't know how to create json file and metedata.

which are the components are there in metadata?

CloudeReco sample how to implement user target image

March 14, 2013 - 7:42am #5

thank u for ur erplay i am using SDK 2.0.31

CloudeReco sample how to implement user target image

March 13, 2013 - 10:01pm #4

hi i have another question in this same scane programme can i se the device data base is possible.how i do it.

CloudeReco sample how to implement user target image

March 13, 2013 - 9:50pm #3

thank you.it is requiest send to cloude data base but the torget not find. if i change any modification in programme i only chage the client access key and secret key please i need ur help because i am new for vuforia sdk using to implement xcode.one again thank u for ur replay.

CloudeReco sample how to implement user target image

March 13, 2013 - 9:06am #2

Replace the client access keys in the sample with the ones from your Cloud Database. Then run the sample and look for the recognition events in your log. The sample will try to call an URL based on metadata associated w/ the target and so won't work properly for you unless you design your app to do the same. But at least you'll be able to confirm that the targets are being recognized.

Which SDK version are you using?

Log in or register to post comments