Table of Contents

Create annotation for on-site run verification

Annotation data is structured data files created through the Mega Studio tool, primarily used to record spatial positioning information such as location coordinates and pose parameters of target objects within a scene. In the localization verification process of Mega Toolbox, these annotation data can be utilized as a benchmark reference to verify the accuracy of actual localization effects.

Before you begin

Preparations needed before creating annotation data:

  1. Block cloud-based localization service
  2. Unity Editor

Install Mega Studio

If you have already downloaded and installed the EasyAR Sense Unity Plugin, you can skip this step.

Download EasyAR Sense Unity Plugin

On the EasyAR download page, select "EasyAR Sense Unity Plugin (for Mega)" to download, as shown below:

Download Mega Studio

Download Mega Studio

After downloading, extract the file to obtain two tgz files.

Download Mega Studio

Create Unity project

Run Unity and create a "New Project".

Create unity project

  • Select "3D (Built-In Render Pipeline)".
  • Click "Create Project".

Create unity project

Install Mega Studio

Click "Window" in the menu bar, select "Package Manager". In the pop-up window, click the "+" symbol in the top-left corner and choose "Add package from tarball...".

Install studio

Install the sense and mega packages sequentially. After successful installation, it will appear as shown.

Install studio

Mega Studio usage

Right-click in the blank area of the left "Hierarchy" panel and import "Annotation Tool(Edit Mode)".

Use studio

  • Select "EasyAR.Mega.Annotation" in the left "Hierarchy" panel.
  • Enter your EasyAR account name and password in the right "Inspector" panel.
  • Click "Login".

Use studio

  • In the right "Inspector" panel, click the icon after "Mega Cloud Service".
  • In the opened window, select a "Mega Block localization service".
  • Click "OK".
  • In the right "Inspector" panel, click "Load" to add the map to the Unity project.

Use studio

  • Press Ctrl and left mouse button simultaneously at the spatial position needing annotation to create an annotation cube.

Use studio

  • Select "EasyAR.Mega.Annotation" in the left "Inspector" panel.
  • Click the icon after the annotation data package in the right "Inspector" panel.

Use studio

  • In the opened window, select a "Mega Block localization service" on the left.
  • Click the "+" symbol in the top-right corner to create an annotation data package.
  • Enter the name of the annotation data package.
  • Click the "√" symbol to confirm.
  • Click "OK" to save the annotation data package.

Use studio

  • Click below the annotation data package in the right "Inspector" panel and click the "∧" button.
  • Finally, click "Yes" in the pop-up window to complete saving the annotation data package. You can view and delete annotation data in the cloud service's Block cloud localization.

Use studio