Table of Contents

Using AR in WeChat Mini Programs

Developing AR applications in WeChat Mini Programs relies on the VisionKit and xr-frame components provided by WeChat. Developers can implement features such as image tracking and motion tracking. Through EasyAR, Mega and cloud image recognition (CRS) are also supported on WeChat Mini Programs.

To achieve an AR experience in Mini Programs, multiple components need to work together:

  • XR-Frame is responsible for camera control and the rendering and overlaying of 3D virtual content in Mini Programs.
  • VisionKit provides image tracking, local device motion tracking, and more.
  • EasyAR CRS provides the position and pose of cloud-recognized images relative to known planar targets.
  • Mega provides the six-degrees-of-freedom position and pose of the device relative to a known spatial environment.

Next steps

To help you quickly develop applications for WeChat Mini Programs, please refer to the relevant getting-started guides and sample code.