Quick start for developing WeChat Mini Program with cloud image recognition
This article will guide you through quickly developing an AR application based on EasyAR's cloud image recognition on WeChat Mini Program. Through this introduction, developers can learn how to integrate EasyAR's cloud recognition capabilities in the WeChat Mini Program environment and use the XR-FRAME framework to build interactive AR experiences.
Development preparation
- WeChat Developer Tools.
- Obtain "AppID (Mini Program ID)". If you don't have one, please register a WeChat Official Accounts Platform account or apply for a test account.
- Download WeChat Developer Tools.
- API Key supporting cloud recognition.
- Running cloud recognition library.
Upload cloud recognition images
Prepare a recognition image and upload it to the cloud recognition library. Refer to Library Management for the upload method.
Download sample
Download "EasyAR CRS WeChat Mini Program Sample" from the EasyAR Download Page.

Configure sample
- Unzip the downloaded "EasyAR-miniprogram-WebAR-Demo-tracking.zip" to your directory.

- Import into WeChat Developer Tools.


- Under "Details" → "Local Settings", check "Do not verify legal domain names, web-view (business domain names), TLS version, and HTTPS certificates".

- Preview effect in "WeChat Developer Tools".

- The sample code has reserved configuration items. Please configure according to your actual environment.

Effect preview
- Click "Preview" in "WeChat Developer Tools".
- Select "Enable automatic preview on mobile".
- Click "Compile and Preview"

Tip
Do not use "Real Device Debugging".
- Running effect on mobile phone.

- If you haven't added the domain to the legal request list, enable "Development Debugging". Enable as follows:

- For first run, click "Allow" to authorize camera access.

- Click "Cloud Recognition Function" on the preview page.

- Point your phone camera at the recognition image you uploaded, click "Click to Recognize". If the target is recognized, the name of the recognized target will pop up.
