Hi Vincent,
There is currently no way to get the camera frame size from the WikitudeSDK without using the Plugins API.
There is also method to get the focal lenth/sensor size/fov.
If you need those informations you could create your own camera implementation and provide the camera frame to the WikitudeSDK using an InputPlugin. There is a sample on how you can do this in our example app.
Best Regards,
Alex
Hi,
Thanks for your answer.
Regards,
Vincent
Hi,
Still expecting some more details please, is there any Java inputPlugin sample and documentation ?
Thanks.
Regards,
Vincent
Hi
In the sample, the input plugin is done using Native code (C++), it is the only way ?
Where can I found an simple inputPlugin to manage the input Camera ?
Thanks
Regards,
Vincent
Hi Vincent,
the C++ InputPlugin is the only way for you to get the requested camera data.
Our sampleApp contains a "SimpleInputPlugin" sample which should be exactly what you need.
It is documented here.
Best Regards,
Alex
I cannot edit the topic, but I also need camera's parameter as focal length and sensor size to be able to compute vertical FOV.
How can I get theses from the API ?
Thanks.
Vincent
Hi Vincent,
advanced camera informations are in our feature list but not on our roadmap yet so I can not say when or if this is going to be implemented.
Best Regards,
Alex
Hi,
Thanks for these details.
As a solution, from Android 21 to upper is it easy to get camera settings, be before api 21, you need to open it first, get settings, then release the camera to let Wikitude open it again.... not very handy, but works, and avoid a native input plugin just to get some camera properties.
Vincent.
Hi Alex,
I see, but creating a native plugin just for these simple informations (focal distance, sensor size, fov) seems very painful since Wikitude is able provide them.
It is something waiting for developments ?
Thanks.
Regards
Vincent
Vincent B
From NativeStartupConfiguration I can set the camera resolution I want, but how can I get it later ? (at least necessary when using Auto mode )
I mean, there is no way to get camera frame size from WikitudeSDK ?
Thanks.
Vincent