HMS-Core / hms-ml-demo

HMS ML Demo provides an example of integrating Huawei ML Kit service into applications. This example demonstrates how to integrate services provided by ML Kit, such as face detection, text recognition, image segmentation, asr, and tts.
https://developer.huawei.com/consumer/en/hms/huawei-mlkit?ha_source=hms1
Apache License 2.0
356 stars 120 forks source link

LivenessCustomDetectionActivity 摄像头预览变形 #70

Open dcboy opened 3 years ago

dcboy commented 3 years ago

竖屏设备摄像头旋转后预览的SurfaceView变形, 建议SurfaceView实例通过外部初始化传入

Mike-mei commented 3 years ago

目前surfaceview只支持竖屏,不支持横屏。可以提供下具体的使用场景,把问题描述的更详细一些吗?方便我们进行问题定位

dcboy commented 3 years ago

我们使用的场景有竖屏也有横屏,我们可以通过修改surface来做兼容,希望能通过外部传入实例完成