Since the SDK 8.1 we feel that some things have changed with the camera input on Android.
In particular we have this problem on a OnePlus One (running Android 6.0.1), the image is deformed.
First this is the sample app with SDK 8.0 :
And with the SDK 8.2 (it is the same with SDK 8.1) :
Also it is interesting to see that the deformation vary depending on the camera orientation, as shown on this video capture :
This deformation prevents any targets to be recognized on this phone.
Please feel free to ask any questions about this problem.
Hope you can fix it soon,
We tried that device in the Samsung provided test center, however it has limitations, so that we can read camera data properly. We have secured a O+1 already - will be in the house soonish, so I'm confident, that we have a more valueable answer what is causing this issue soon.
Just finished testing the SDK 8.0.0 version - and I can confirm it works normally (as expected).
So the outcome of my tests is as follows:
Tablet without update (Android 7.0.0) - SDK 8.1.0 --> No deformed camera view.
Tablet with update (Android 8.1.0) - SDK 8.1.0 --> Deformed camera view.
Tablet with update (Android 8.1.0) - SDK 8.2.0 --> Deformed camera view.
Tablet with update (Android 8.1.0) - SDK 8.0.0 --> No deformed camera view.
I guess something was introduced in the Wikitude SDK 8.1.0 that causes this behaviour.
I run your special version of the Native Android Example app. The distortion is still present on this version.
Attached to this message you'll find the content of the console output when trying to run the image target example for few seconds. I also attached the "logcat" output.
Hope this can help,
I just tested my device with the Android Native API example app and I face the same problem, the camera input is deformed and target images are not recognized.
Again this bug appeared with SDK 8.1. Tell me if you want me to run some debug version of your app on this device.
Have a good day,
my apologies for the delay. I won't be able to create the package today either, I'm afraid. I've put it on my "first things after Christmas"-TODO list, so I'll send you the download link on the 27th.
The wikitude team emailed me with an answer :
- they have a fix ready for the next sdk release
- the simple workaround was to set "camera2_enabled" parameter to false in the startupConfiguration.
- why don't you share your answer directly on the forum so everybody could benefit from it ?
- and why don't you tell us from the beginning (2 month ago...) about this camera2_enabled parameter ?!
As we get a huge amount of support tickets and forum requests and those 2 in this case haven't been linked, the status in this forum post was not updated as it should have been and we only answered your support ticket. We're sorry about that and of course want the users here also to benefit from details.
The second question is simply because we didn't suspect this setting to create the mentioned problem on the mentioned specific devices.
Thx Amaury for adding the details so the others can also check if the mentioned workaround is helping.
Thx and greetings
Now I understood, sorry. I was always under the impression that you run a CameraFrameInputPluginModule. I also didn't recognize that you use Cordova.
Theoretically you can use Wikitude SDK Plugins in Cordova, it's just not that simple to demonstrate/distribute in a generic Cordova environment, that's why we don't demonstrate it.
To continue on the bug hunt here: As we don't have this very specific device and can't reproduce it with any of our Android devices, could you please run our Native API example app (SDK version 8.2) on the very same device? The camera implementations are different for those two products and we would like to know how the new one in the Native API SDK behaves. In case it's working fine in the Native API SDK example app, please wait for our upcoming release that unifies our camera implementations for all products. If that's not the case, we would send you a special build with some logging enabled so that we can remote debug the issue.
again, my apologies for the long delay. Here is the custom build that includes logging. The log uses the tag "WIKITUDE_DEBUGGING". I've chosen to create a native build. It will build out of the box in Android Studio. Just run any sample (excluding input plugins) to receive the log.
just to clarify some things, you talk about implementing a custom camera using our CameraFrameInputPluginModule and not about letting the SDK render into a offscreen texture, right? The images you captured are coming from our unmodified example app or your own implementation of a CameraFrameInputPluginModule?
Looks a little bit like the field of view is not set correctly. Also because it changes with orientation changes.
Hi and thanks for your answer,
I am using an untouched wikitude-cordova-plugin-samples. I am not trying to do anything particular here, just launching the plugin sample app with one of your very basic default example.
I thought was not possible to play with CameraFrameInputPluginModule with Cordova ? Is it ?
Have a good day,
Any update or findings on this issue?
We are still investigating the issue and couldn't reproduce the behaviour on any of our devices in the office - we are purchasing a OnePlus One, so we finally can reproduce the error. Hope to have updates soon.