Start a new topic

Define tracking region in camera feed

Is it somehow possible to define region in camera feed and get tracking results only from that region, or to check if recognised image target is in that region?


For example like in the attached image, where you can see this red bounding box on top of camera feed. 

IMG6825.PNG
(3.73 MB)

The best way would be to define an input plugin and crop the camera frame accordingly. You can find an extensive guide here in the documentation

https://www.wikitude.com/external/doc/documentation/latest/android/inputpluginsapi-architect.html#input-plugins-api

- Phil

Thanks. Is this possible with JavaScript API, particularly with Xamarin JS SDK?

I couldn't find input plugins in that documentation.

Hi,


the Input Plugins API feature is currently supported in the JS API, Native API and the Unity Plugin. The other extensions (Cordova, Flutter, Xamarin) don't include this feature.


Thx and greetings

Nicola



Hi,


Ok thanks, but Xamarin extension is using JS API so I guess I could use it there also, since it is the same code written in JavaScript.


Could you please explain these PluginsAPI examples you have on your GitHub, particularly PluginsAPI CustomCamera sample and SimpleInputPlugin sample, as I don't see anything in there that is calling PluginAPI, only basic .wtc file load and nothing else. Is there something missing?

https://github.com/Wikitude/wikitude-sdk-samples/tree/master/13_PluginsAPI_4_CustomCamera

Please provide help on this matter! 
You have sent link to Plugins API in your documentation, and in documentation it is said to check CameraAPI sample.
We have asked here in previous post, for you to check that sample because it doesn't contain any code that is relevant to PluginsAPI. 
We cannot finish our app if we don't know how to use your SDK!

Hi Tomislav,


You can find details in the documentation link that Phil shared:

https://www.wikitude.com/external/doc/documentation/latest/android/inputpluginsapi-architect.html#input-plugins-api


For the sample code, please work with the sample app that is included in the respective SDK download package (to that you have latest version).


I want to mention again, eventhough our Xamarin Extension is based on JS, the Xamarin Extension still don't support the Plugins API / Input Plugin. You'd need to work with the JS API, Native API and the Unity Plugin directly.


Thx and greetings

Nicola

Login or Signup to post a comment