Log in or register to post comments

Using several cloud databases in the same application

July 26, 2013 - 1:54am #1
Hello everyone,
 
We're currently developping an application using Cloud Recognition with Unity3D. Our application will track a big book (with many pages) which is publishing in 5 languages. And each page will have an identical layout (same gaphics) by language, it's only text characters that will be different.
 
When a page will be detected by the cloud, we want to display some information about graphics of the page.
 
1) We did some tests with the free cloud, and it seems that when some pages in the datasets are almost similar, the algorythm cannot find images.
Is it a behaviour that someone have already noticed ? (we think this behaviour occured to avoid to make a mistake of tracker, isn't it ?)
 
 
2) In order to get around the problem, we thought to use several cloud databases (one by language), and so, we need to switch dynamically of cloud database ? Do you know if is it posssible ? How to do to switch of cloud database ? (On the script CloudRecoBehaviour, the Unity inspector says : "read only access key") Is it Vuforia rule Compliant to switch of database and so, using several databases in the same application ?
 
Regards

Using several cloud databases in the same application

July 26, 2013 - 12:07pm #2

Hi, using multiple Cloud DBs is a viable option;

the access keys are used inside the CloudRecoBehaviour script which is attached to the CloudRecognition prefab;

the keys are used in the initialize() method, which is triggered when the CloudRecoBehaviour is initialized; this happens in response to the QCAR initialization;

so, one way of reinitializing Cloud reco with differen keys would be to disable the QCARBehaviour object, (so that QCAR will be stopped) and then re-enable it; by re-enabling QCARBehaviour, the initialization callbacks will be issued again, and this will trigger the re-initialization of CloudRecoBehaviour; you could then adapt the code so to use different keys during initialization.

Another possibility could be to create multiple scenes in Unity, and setup each scene with different Cloud keys; then, depending on the language that you want, you may simply load the corresponding scene.

 

Log in or register to post comments