Table of Contents

Using AR in WeChat Mini Programs

Developing AR applications in WeChat Mini Programs relies on 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) capabilities are also supported on WeChat Mini Programs.

To achieve the AR experience on Mini Programs, multiple components work together:

  • XR-Frame is responsible for camera control and the rendering and overlay of 3D virtual content on the Mini Program.
  • VisionKit provides image tracking, device-local motion tracking, etc.
  • EasyAR CRS provides the position and pose relative to known planar targets through cloud image recognition.
  • Mega provides the six degrees-of-freedom position and pose of the device relative to a known spatial environment.

Next steps

To facilitate your rapid development of WeChat Mini Program applications, please refer to the relevant getting started guides and sample code.