当前位置:网站首页>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的位置即可
这样设置后就可以扫描自定义的图片了。
四、更多操作可以看官方说明
边栏推荐
- China peek market outlook and future strategic planning proposal report 2022-2027
- 直播预告丨消防安全讲师培训“云课堂”即将开讲!
- If you meet a female driver who drives didi as an amateur, you can earn 500 yuan a day!
- SQL基础
- How can an enterprise successfully complete cloud migration?
- vs code 使用 prettier 格式化 js 的时候, 函数定义的名称和括号之间有一个空格, 而 eslit 又不允许这个空格.
- ~94 zoom
- 如何把数据库的数据传给复选框
- My SQL (II)
- Go语言学习笔记 1.1
猜你喜欢

Load balancer does not have available server for client: userservice problem solving

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

vs code 使用 prettier 格式化 js 的时候, 函数定义的名称和括号之间有一个空格, 而 eslit 又不允许这个空格.

数据湖架构之Hudi编译篇

Live broadcast Preview - fire safety instructor training "cloud class" is about to start!

Go language learning notes 1.1

Shell编程-用户信息管理

C# Nuget离线缓存包安装

LabVIEW arduino TCP / IP Remote Intelligent Home System (Project section - 5)

海量日志采集工具——Flume
随机推荐
Judgment of SQL null value
Dpdk - tcp/udp protocol stack server implementation (I)
【golang】time相关
Spark3.3.0源码编译补充篇-抓狂的证书问题
Typescript type
MYSQL(三)
【微服务系列】Protocol buffer动态解析
直播预告丨消防安全讲师培训“云课堂”即将开讲!
Distribution operation of D
How to transfer database data to check box
Jasminum plug-in of Zotero document management tool
Type de Typescript
Fmt Must the result of println (true) be true?
MySQL 数据库的小白安装与登录
3.pyinstaller模块介绍
Customer Stories | Netease spring breeze: the "spring breeze" of the fun industry, reaching out to all areas through in-depth interaction
闭包问题C# Lua
[micro service series] protocol buffer dynamic analysis
A new paradigm for large model application: unified feature representation optimization (UFO)
LabVIEW Arduino tcp/ip remote smart home system (project part-5)