当前位置:网站首页>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的位置即可
这样设置后就可以扫描自定义的图片了。
四、更多操作可以看官方说明
边栏推荐
- OCA安全联盟(CyberSecurity Mesh)
- Guide to "avoid dismissal during probation period"
- Mysql delete in 不走索引的
- LabVIEW Arduino TCP/IP遠程智能家居系統(項目篇—5)
- C# Nuget离线缓存包安装
- China polyimide film market demand and future investment risk outlook report 2022-2027
- Simple use of typescript's class interface
- Unsatisfied dependency expressed through field ‘baseMapper‘; nested exceptio
- Hudi compilation of data Lake architecture
- LabVIEW arduino TCP / IP Remote Intelligent Home System (Project section - 5)
猜你喜欢

Number of connections server database message: error number 2003can't connect to MySQL server on 'server address' (10061)

How to set MySQL triggers is a simple tutorial for novices

Solution of garbled code in sparkshell deletion key of SecureCRT

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

分析 NFT 项目的 5 个指标

Go language learning notes 1.1

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

连接数服务器数据库报:错误号码2003Can‘t connect to MySQL server on ‘服务器地址‘(10061)

Phantom star VR equipment product details II: dark battlefield
[alluxio & Dachang] the original boss direct employment was applied in this way
随机推荐
View analysis
STM32F1与STM32CubeIDE编程实例-热敏传感器驱动
Simple use of enum type in TS
【图像融合】基于耦合特征学习的多模式医学图像融合附matlab代码
分析 NFT 项目的 5 个指标
3.pyinstaller模块介绍
typescript的type
[004] [stm32] MDK project configuration and commissioning
Show statement usage supplement
【golang】time相关
成水最多的容器
数据挖掘是什么?
Research Report on market supply and demand and strategy of China's microneedle device industry
Lightgbm-- parameter adjustment notes
C nuget offline cache package installation
遇到女司机业余开滴滴,日入500!
shell 输入验证仅限字母数字
China peek market outlook and future strategic planning proposal report 2022-2027
Closure problem C Lua
Open source demo| you draw and I guess -- make your life more interesting