当前位置:网站首页>unity之EasyAR使用
unity之EasyAR使用
2022-06-26 06:43:00 【被代码折磨的狗子】
一、效果展示
二、准备工作
1.下载EasyARSdk包 导入unity


下载完毕,解压后可以看到有一个com.easyar.sense-4.5.0+2500.38660d14.tgz包 注意这个包不要解压

(2) 在Unity中导入com.easyar.sense-4.5.0+2500.38660d14.tgz包
这里我用的Unity版本是2019.4.32f1
打开Package Manager面板

(3) 导入com.easyar.sense-4.5.0+2500.38660d14.tgz包
(4)导入EasyAR自带的Demo场景


2. 打开图片识别的场景Demo
(1)打开

打开图片识别场景,这时候Easy还是不能用的 因为需要一个密钥

2.获取EasyAR密钥
(1)注册登录

(2)创建Sense秘钥
(3) 复制秘钥

3. unity添加EasyAR秘钥
进入配置文件


扫描EasyAR默认图片测试 
测试结果:

测试成功
三、自定义图片扫描
(1)新建场景,创建Session
(2)设置Camera相机属性
(3)手机拍摄一张图片或者网上找一张图片,将图片放入到StreamingAssets文件下
这是我自己拍摄了一张图笔记本的图

(4)新建 Image Target

将图片名称写入

(5)在 Image Target下创建一个Cube

如果看不到的话 调整一下cube的位置即可
这样设置后就可以扫描自定义的图片了。
四、更多操作可以看官方说明
边栏推荐
- I caught a 10-year-old Alibaba test developer in the company. After chatting with him, I realized everything
- Installation and login of MySQL database
- Closure problem C Lua
- Simple use of typescript's class interface
- MySQL 数据库的小白安装与登录
- Research Report on market supply and demand and strategy of China's microneedle device industry
- How to transfer database data to check box
- zip(*arg)的用法
- 浏览器的四大内核:Trident,Gecko,Webkit,Blink
- Go学习笔记1.3-变量的数据类型篇
猜你喜欢

我在腾讯做测试的这几年...

Load balancer does not have available server for client: userservice problem solving
![[micro service series] protocol buffer dynamic analysis](/img/86/357d55c77cc67d6413af2de59bf395.png)
[micro service series] protocol buffer dynamic analysis

Past events of Xinhua III

When vs code uses prettier to format JS, there is a space between the name of the function definition and the parentheses, and ESLIt does not allow this space

Decompile Android applications, interview Android

Shell编程-用户信息管理

【yolov4】基于yolov4深度学习网络目标检测MATLAB仿真

STM 32 使用cube 生成TIM触发ADC并通过DMA传输的问题

数据挖掘是什么?
随机推荐
My SQL(二)
Solve the problem of cross domain invalidation of cookies in the new version of Google Chrome browser
Screen sharing recommendations
[golang] time related
Decompile Android applications, interview Android
解决新版谷歌Chrome浏览器Cookie跨域失效问题
Open source demo| you draw and I guess -- make your life more interesting
Simple use of typescript's class interface
【图像融合】基于梯度能量、局部能量、 PCA三种融合规则实现MRI-CT图像融合附matlab代码
Pagoda server setup and database remote connection
3.pyinstaller模块介绍
If you meet a female driver who drives didi as an amateur, you can earn 500 yuan a day!
面试官:测试计划和测试方案有什么区别?
China peek market outlook and future strategic planning proposal report 2022-2027
My SQL (II)
Kotlin Compose 状态恢复 rememberSaveable 与 remember
浏览器的四大内核:Trident,Gecko,Webkit,Blink
淺析一道經典題
数据湖架构之Hudi编译篇
typescript的type