Log in or register to post comments

Vuforia and swift

February 20, 2019 - 5:15pm #1

Hello everyone,

I have a task to create AR app using swift and Vuforia. I'm quite new in swift, but have some experience with Objective C.

I have several rookie questions if anyone is able to help me that would be great.

1. Does Vuforia works with swift? I've found few old topics about this and they all said no. Is this still the answer for the current version of the iOS SDK - v8.0.10? I can't find anything in the release notes. If it's not supported then is there a way of still using it in a swift project somehow with extra setup steps?

My task is to add an appropriate AR object to an image depending on what's on the image, for example if the main target of the image is a car I have to add a car AR object on top of my image. I've looked into the Vuforia sample app and I'm not quite sure what exactly I have to use to achieve this. I think it's the cloud recognition, but if someone can verify that would be awesome or point me into the right direction. Also using the  cloud recognition in the sample app as I'm pointing the camera around in the console I see the following messages:

Vuforia[32011:6663585] INFO/AR(32011) 2019-02-21 19:52:59: Completed CloudReco transaction with ID '5e7fa479602f40ceaceb24a830d0b1fe'

what would be that transaction ID and what is it for?

 

Thank you for the information in advance

Vuforia and swift

February 27, 2019 - 7:05pm #6

Thank you very much for the information, but what I was looking for was complete wrong from what I was asking. Still pretty new to the subject.

If anyone can close this topic and I will open a new one about different problem.

Thanks

Vuforia and swift

February 22, 2019 - 2:54pm #5

Hello,

Thank you for the information!

And yes, you are correct, I need some metadata associated with my Cloud Reco search result. As I'm pretty new to this I'm not using the correct words.

After a brief look into the Book sample app I see after recognizing the cover of the book additional information is being downloaded.

I will keep researching and probably will have more questions as of I'm still not quite sure what exactly I'm suppose to do

 

Thanks again for the information

Vuforia and swift

February 22, 2019 - 1:51pm #4

Hello @PetarAntonov,

I believe I understand your basic use case, and agree that Vuforia's Cloud Reco feature is a good candidate.

Although I'm a bit confused by your question "Is there such an example of downloading AR object from Vuforia and placing it on top of an image?". I read this as you needing some metadata associated with your Cloud Reco search result? Some type of payload that delivers content? If this is correct, then each image uploaded to our service can have up to 2MB of payload associated with it:

https://library.vuforia.com/content/vuforia-library/en/articles/Training/Cloud-Recognition-Guide.html

We currently have two (2) samples that demonstrate our Cloud Reco service: Core samples, which is a limited use case, and Books from our Advanced Topics samples. The latter shows one potential use case for metadata associated with a successful cloud query.

https://developer.vuforia.com/downloads/samples

HTH

Thanks,

Vuforia Engine Support

Vuforia and swift

February 21, 2019 - 6:36pm #3

Hello,

Thank you so much for the information. I will try for now to make it work in Objective C

But yes, we don't know what the user will want to take an image of and we have to keep it dynamically so cloud recognition looks to be the way to go. 

Is there such an example of downloading AR object from Vuforia and placing it on top of an image? I can't find anything in the sample code.

Any tips in this direction will be very helpful and appreciated.

Thank you for you time

Vuforia and swift

February 21, 2019 - 9:41am #2

Hello,

PetarAntonov wrote:

1. Does Vuforia works with swift? I've found few old topics about this and they all said no. Is this still the answer for the current version of the iOS SDK - v8.0.10? I can't find anything in the release notes. If it's not supported then is there a way of still using it in a swift project somehow with extra setup steps?

Swift is not commercially supported by Vuforia, but I'm aware of some devs who've been successful in getting it to work.

PetarAntonov wrote:

My task is to add an appropriate AR object to an image depending on what's on the image, for example if the main target of the image is a car I have to add a car AR object on top of my image.

This is the basic use case demonstrated in the Image Targets feature of our Core samples app.

https://library.vuforia.com/content/vuforia-library/en/articles/Training/Image-Target-Guide.html

PetarAntonov wrote:

I think it's the cloud recognition, but if someone can verify that would be awesome or point me into the right direction.

Cloud Recognition is recommended for use cases where the number of targets being used in the app will grow above 1000 images, or if images need to be added dynamically without updating the app.

PetarAntonov wrote:

Also using the  cloud recognition in the sample app as I'm pointing the camera around in the console I see the following messages:

Vuforia[32011:6663585] INFO/AR(32011) 2019-02-21 19:52:59: Completed CloudReco transaction with ID '5e7fa479602f40ceaceb24a830d0b1fe'

what would be that transaction ID and what is it for?

This is the logging message for the Cloud Recognition query transaction. When not tracking an image, the Vuforia Core sample will trigger a query anytime there is a "good" camera frame to send to the service.

Thanks,

Vuforia Engine Support

 

Log in or register to post comments