当前位置:网站首页>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的位置即可
这样设置后就可以扫描自定义的图片了。
四、更多操作可以看官方说明
边栏推荐
- Show statement usage supplement
- 浅析一道经典题
- Spark3.3.0源码编译补充篇-抓狂的证书问题
- Research Report on China's surfactant market demand and future investment opportunities 2022
- Play with a variety of application scenarios and share secrets with Kwai MMU
- Bugku练习题---MISC---富强民主
- Research Report on market supply and demand and strategy of China's pallet scale industry
- Typescript type
- SQL Basics
- Type de Typescript
猜你喜欢

营销技巧:相比较讲产品的优点,更有效的是要向客户展示使用效果

Bugku练习题---MISC---富强民主

Interviewer: what is the difference between a test plan and a test plan?

Past events of Xinhua III

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

淺析一道經典題

Installation and login of MySQL database
![[digital signal processing] basic sequence (unit step sequence | relationship between unit step sequence and unit pulse sequence | rectangular sequence | relationship between rectangular sequence and](/img/0c/3aeb7f93576181bbc46d2d1a1aa0e7.jpg)
[digital signal processing] basic sequence (unit step sequence | relationship between unit step sequence and unit pulse sequence | rectangular sequence | relationship between rectangular sequence and

LabVIEW Arduino TCP/IP远程智能家居系统(项目篇—5)

直播预告丨消防安全讲师培训“云课堂”即将开讲!
随机推荐
Research Report on market supply and demand and strategy of Chinese amyl cinnamaldehyde (ACA) industry
成水最多的容器
Decompile Android applications, interview Android
zip(*arg)的用法
DS18B20 details
Usage of zip (*arg)
OCA Security Alliance (cybersecurity mesh)
稀疏数组sparsearray
Solution of garbled code in sparkshell deletion key of SecureCRT
视图简析
API and encapsulation of cookies
面试官:测试计划和测试方案有什么区别?
My SQL(二)
Interviewer: what is the difference between a test plan and a test plan?
New generation engineers teach you how to play with alluxio + ml (Part 1)
Research Report on China's surfactant market demand and future investment opportunities 2022
Customer Stories | Netease spring breeze: the "spring breeze" of the fun industry, reaching out to all areas through in-depth interaction
China micronutrient market trend report, technical innovation and market forecast
数据湖架构之Hudi编译篇
typescript的type