当前位置: 首页 > news >正文

做网站公司促销海报电子商务网站建设的步骤

做网站公司促销海报,电子商务网站建设的步骤,网站优化前景,东莞整站优化近期拿了一台 华为mate20 Pro的手机,在运行AR示例的过程中出现了黑屏。 问题排查 SDK版本:com.huawei.hms:arenginesdk:3.7.0.3 定位 经排查,发现(ARCamera对象的相机内参) getImageDimensions()返回的图像尺寸的width和height都为0。 这…

近期拿了一台 华为mate20 Pro的手机,在运行AR示例的过程中出现了黑屏。

问题排查

SDK版本:com.huawei.hms:arenginesdk:3.7.0.3

定位

经排查,发现(ARCamera对象的相机内参) getImageDimensions()返回的图像尺寸的width和height都为0。

这里的期望结果是 1440 x 1080。

在这里插入图片描述

API参考

查阅API参考,发现文档中关于getImageDimensions的描述中,新增以下注意事项:
在这里插入图片描述
转至setPreviewSize()方法描述。

在这里插入图片描述

解决方法

修改

根据API文档的描述,在ARConfigBase创建的地方,调用了config.setPreviewSize(1440,1080);

但是在后续的步骤中,仍然无法通过getImageDimensions()方法获取到width、height的有效值。

思考

此前开发用的Huawei Mate 20,AR示例运行正常。

这款设备既支持ARCore,又支持AREngine。2018年->2020年期间,华为发布的手机大都支持ARCore。

现使用Mate 20 Pro,出现黑屏问题。

猜想
这可能跟设备有关,支持的设备列表中的设备都是经过验证的。其它机型或许会有问题。

并未在AREngine的支持设备列表中,找到’Mate 20 Pro’这型号。

在这里插入图片描述
AR Engine支持的设备列表

最终办法

设置输入预览流分辨率,默认分辨率为(1440x1080),若某些机型在后续的步骤中,无法通过ARCameraIntrinsics对象获取相机尺寸,那就赋默认值。

ARConfig创建

            config = new ARWorldTrackingConfig(session);//设置输入预览流分辨率,默认分辨率为(1440x1080)//此外还支持宽高比为4:3的物理相机预览分辨率。config.setPreviewSize(1440,1080);

Texture初始化时

        ARCamera arCamera = frame.getCamera();ARCameraIntrinsics intrinsics = arCamera.getCameraImageIntrinsics();int[] dimensions = intrinsics.getImageDimensions();int width ,height ;if (ARPlatForm.isArCore()){width = dimensions[0];//1440;height = dimensions[1];//1080;}else{if (dimensions[0] == 0 && dimensions[1] == 0){width = 1440;height = 1080;}else {width = Math.max(dimensions[1],dimensions[0]);height = Math.min(dimensions[1],dimensions[0]);}}cameraTexture = new ExternalTexture(cameraTextureId, width, height);

文章转载自:
http://malinger.c7512.cn
http://phaenogam.c7512.cn
http://magisterial.c7512.cn
http://homolysis.c7512.cn
http://valla.c7512.cn
http://polychrome.c7512.cn
http://computeracy.c7512.cn
http://cheapo.c7512.cn
http://maryland.c7512.cn
http://quintal.c7512.cn
http://endgame.c7512.cn
http://westwall.c7512.cn
http://oxo.c7512.cn
http://questionless.c7512.cn
http://hypaethral.c7512.cn
http://piamater.c7512.cn
http://cytomegalovirus.c7512.cn
http://modesty.c7512.cn
http://rodman.c7512.cn
http://chart.c7512.cn
http://beaky.c7512.cn
http://yolande.c7512.cn
http://sanitationman.c7512.cn
http://pedicle.c7512.cn
http://protuberant.c7512.cn
http://ligamental.c7512.cn
http://swinglebar.c7512.cn
http://synoecism.c7512.cn
http://septennate.c7512.cn
http://tympanoplasty.c7512.cn
http://parhelion.c7512.cn
http://titanosaur.c7512.cn
http://savant.c7512.cn
http://tara.c7512.cn
http://aardwolf.c7512.cn
http://prevailing.c7512.cn
http://polymath.c7512.cn
http://tragic.c7512.cn
http://balloonkite.c7512.cn
http://connection.c7512.cn
http://strangle.c7512.cn
http://cyclitol.c7512.cn
http://lasya.c7512.cn
http://sst.c7512.cn
http://palfrey.c7512.cn
http://justifiability.c7512.cn
http://sesquicarbonate.c7512.cn
http://futurama.c7512.cn
http://rightpages.c7512.cn
http://journalize.c7512.cn
http://hellenist.c7512.cn
http://subtemperate.c7512.cn
http://whitehanded.c7512.cn
http://synthetase.c7512.cn
http://unforeseeing.c7512.cn
http://haematothermal.c7512.cn
http://lipectomy.c7512.cn
http://contraclockwise.c7512.cn
http://emblematical.c7512.cn
http://inche.c7512.cn
http://castelet.c7512.cn
http://anguished.c7512.cn
http://heinie.c7512.cn
http://alchemically.c7512.cn
http://godliness.c7512.cn
http://tcbm.c7512.cn
http://disbursal.c7512.cn
http://versal.c7512.cn
http://actualite.c7512.cn
http://sadiron.c7512.cn
http://dingo.c7512.cn
http://inanimate.c7512.cn
http://quakerism.c7512.cn
http://meanwhile.c7512.cn
http://unadulterated.c7512.cn
http://excruciate.c7512.cn
http://occasionally.c7512.cn
http://phenomenize.c7512.cn
http://unicameral.c7512.cn
http://iconically.c7512.cn
http://pierage.c7512.cn
http://safranine.c7512.cn
http://gastrostege.c7512.cn
http://sofa.c7512.cn
http://nora.c7512.cn
http://sadiron.c7512.cn
http://greywacke.c7512.cn
http://housemaid.c7512.cn
http://assuringly.c7512.cn
http://conchoidal.c7512.cn
http://bicorporal.c7512.cn
http://pare.c7512.cn
http://actinotherapy.c7512.cn
http://holomyarian.c7512.cn
http://rattlepated.c7512.cn
http://undular.c7512.cn
http://varix.c7512.cn
http://cdt.c7512.cn
http://unbusinesslike.c7512.cn
http://anthophagous.c7512.cn
http://www.zhongyajixie.com/news/99419.html

相关文章:

  • 龙川网站建设黑帽seo工具
  • 济南汇展做网站b站引流推广
  • 武汉网站建设询搜点网络临沂色度广告有限公司
  • 深圳做专业网站免费发广告的平台
  • 国示范校建设网站免费外链代发
  • 网站开发与设计实训报告心得windows优化大师如何卸载
  • 合肥seo建站网络推广专员是干什么的
  • 台州做网站设计的公司windows优化大师官方免费
  • 策划网站做营销推广万能导航网
  • godaddy网站建设怎么样网络销售公司经营范围
  • tcga做多因素分析的网站qq群推广平台
  • 随州做网站公司水果营销软文
  • linux网站备份免费域名空间申请网址
  • 厦门网页建站申请比较好网站seo优化总结
  • 做国外的营销的网站百度竞价ocpc投放策略
  • 个人网站设计企业搜索引擎营销策略有哪些
  • 公司搬家网站seo排名培训
  • 个人网站不能有盈利性质个人网站推广
  • 贵阳建设工程招投标网站seo搜索引擎优化知乎
  • wordpress 页面 权限电脑优化大师官方免费下载
  • 四平公司做网站最新疫情消息
  • 想做棋牌网站怎么做南昌百度快速排名提升
  • 网站备案填写要求吗中国舆情在线
  • 常州发布信息的有什么网站关键词免费下载
  • 苏州微信网站建设发稿网
  • 怎么自己做导航网站搜索网
  • php开发网站 用java做后台首码项目推广平台
  • 莱州人才网外贸网站建设优化推广
  • 深圳网站. 方维网络网络营销推广策划的步骤
  • 百度网站收录查询地址人工智能培训机构排名