Vuforia Object Scanner 教學

Vuforia Object Scanner 是製作擴增實境的物件掃描器,讓 AR 擴增實境不限於辨視 2D 圖卡,透過全新的物件掃描技術,可以製作擁有 3D 物件辨視與空間定位能力的 AR 應用程式。

 

 

首先必須在您的行動裝置安裝 Vuforia Object Scanner 應用程式,目前僅支援 Android 智慧型手機或平板電腦,官方網頁列出的支援設備僅有 Google Nexus 5 / Google Pixel 2 / Samsung Galaxy S5 系列(或更新的型號)的手機,目前並未支援 iOS 裝置。至於安裝於其他型號的手機,根據實測的結果,平價手機掃描的效果比較差,必須搭載一定水準的相機鏡頭,才能獲得較佳的辨識效果。

連結 → 官方網頁

連結 → 支援設備

連結 → 檔案下載 [ ZIP | APK | A4-PDF ]

 

安裝後點擊 App 圖示開啟 Vuforia Object Scanner 應用程式。

首先將會出現 Home 起始畫面,您可建立新的物件掃描,或檢視先前掃描完成的結果。

 

 

Object Scanning Target

使用 Vuforia Object Scanner 掃描物件之前,您需要先將 Object Scanning target 列印出來,官方建議使用原尺寸 (100%). 列印,修改 Target 大小將影響物件掃描應用程式估計的物理比例。但我們經常使用放大到 A3 尺寸的版本進行掃描。

 

掃描物件的過程需要使用 Vuforia 提供的參考圖來定義物件的位置與方向,官網建議使用原始尺寸列印此參考圖,然後將要掃描的物件放在上面。參考下圖的位置擺放掃描物件。

 

Vuforia Object Scanner 可掃瞄的物件尺寸

目前僅適用於掃描小型物件,超過 A4 尺寸的物件可能不適合掃描。

 

Vuforia 資料庫可儲存的物件數量

Vuforia 資料庫可儲存 20 個 Target 物件,若需辨視更多物件,可以同時使用多個資料庫。

 

App 執行時可以同時辨識多少物件?

目前只能同時辨識與追蹤兩個 3D 物件。

https://library.vuforia.com/content/vuforia-library/en/tools/object-scanner.html

 

使用行動裝置的設備資料庫

https://library.vuforia.com/content/vuforia-library/en/articles/Solution/How-To-Work-with-Device-Databases.html

The purpose of a Device Database - also referred to as datasets in the SDK - is to provide the AR application with a locally accessible database of targets. You may download multiple device databases to include with your Vuforia application. Each device database can contain a maximum of 20 Object Targets in combination with other target types. We recommend that you not include more than 1000 targets (not including Object Targets) in a database.

 

建立新的設備資料庫

 

Device databases provide your AR application with a locally accessible database of targets. You can include multiple device databases in your AR application. The Target Manager allows you to create and manage those databases online, and provides download options for both Unity and native projects.

建立 Device databases 的步驟如下:

1. 前往 Vuforia Developer Portal 網站的 Target Manager 網頁

2. 按下 Add Database 將開啟 Create Database 對話框

3. Name the database and select the Device database option. The database name should be unique for the developer account you are using.

 

 

在設備資料庫加入 Target

Object Targets, Image Targets, Multi Targets and Cylinder Targets are created and managed using the Target Manager. The recommended maximum size for a Device Database is 1000 image-based targets (max 20 Object Targets), though it is possible to support a larger number of image-based targets depending on the images used. You'll need to test your datasets to confirm whether they'll work with more than 1000 targets.

新增一個 Targets 到 Device Database 設備資料庫

1. 前往 Target Manager 網頁,可以看到現有設備資料庫的清單。

2. In the list of databases, find and click the name of the device database in which you want to add a new target.

 

 

新增 Object Target 到資料庫

1. 按下 Add Target 將會開啟 Add New Target 對話框。

2. 選擇 Object Data ( *.od ) 檔案 that you want to use for this target.

3. 輸入 Target 名稱(必須是唯一的,不可與其他名稱重複)

僅可使用英文、數字、底線,不接受其他字元,稍後可修改,建議使用適當描述。

4. 按下 Add 後經短暫處理將會出現 Target Detail 上傳的結果。

 

 

提升掃描 3D 物件的辨視率

1. 掃描時周圍光線很重要,大幅影響輸出後的辨識度。

2. 建議使用攝影用電動旋轉台,可以讓工作更輕鬆些。

3. 掃描檔案不要超過 35MB 否則將無法上傳到資料庫。

注意!辨視率受到物件材質影響,不反光的材質擁有較好效果。