FAQ

Can I receive the queries first and then send them to your server when using CraftAR?

icon Date FAQ

icon Date Dec 15, 2020

icon author Catchoom Team

icon folder , , , ,

This article applies to both the Image Recognition SDK and the Augmented Reality SDK.
Our mobile SDKs have an option to send Cloud Image Recognition queries to your back-end instead of sending them directly to CraftAR. This is useful for implementing some custom application logic on your server. Of course, you also need to forward them via API to the CraftAR service to close the loop. In this configuration, we call your back-end server a proxy server. Also, the option of sending the requests to your back-end is useful when you run CraftAR Enterprise in your own infrastructure.

In order to add your server as a proxy between your app and the CraftAR Service, you need to change the URLs used by the app to connect to CraftAR using the Image Recognition API. The URLs of the API are the following:

  • Connect URL: Used by the app to validate a collection token (SetCollection)
  • Search URL: Used to send query images to perform a visual search

Here’s how to modify the URLs on iOS:

And here’s how to modify the URLs on Android:

Related Posts in FAQ