Closed remmel closed 4 years ago
@remmel
Hi,
The ARConfigBase.setPreviewSize(w,h) function will be supported on EMUI 10 phones in the 5.0.5 version, we will let you know when the new version released.
@Mike-mei , I confirm that this is now working :) Checked with Honor 20 View (10.1.0.237) /Resolution checked (3264,2448) / com.huawei.hms:arenginesdk:2.15.0.1 Thanks !
I tried multiple resolutions on my Honor 20 View: the documentation is missing some resolutions and others which are in the doc, but not working.
Can you update the doc with the new resolutions?
Thank you for your suggestion, we will optimize the description in the documentation in next week
Thanks! Thanks to your snippet, I found a larger resolution (tested) : 3968x2976
According to 2.13 release note, the ARConfigBase.setPreviewSize(w,h) should now work, but I cannot make it work. Size & image provided by
ArCameraIntrinsics.getImageDimensions();
andArFrame.acquirePreviewImage().getWidth()
is always 1080x1440 (tested on Honor View 20 + Huawei P20 Pro)Code : Github hms-AREngine-demo fork
Something else related, is the order width,height it not coherant with
ArCameraIntrinsics.getImageDimensions();
//[1080,1440] as it returns [height,width] but ARConfigBase.setPreviewSize(width,height)