Table of Contents

Image recognition difficulty rating

Before formally adding images to the cloud recognition (CRS) gallery, best practice is to pre-evaluate their quality.

If the target image has too few recognizable areas (such as white walls or solid color blocks) or overly simple textures, its recognition success rate will significantly decrease. This chapter details CRS's rating mechanism to help you select high-quality AR recognition materials.

Grading mechanism and score meaning

Score Evaluation Recommendation
0 - 1 Excellent Extremely rich textures, fast recognition speed, very stable tracking.
2 Good Sufficient feature points to support normal AR operations.
3 Fair Recognition rate may be affected by lighting or angles; texture optimization is recommended.
4 Poor Extremely difficult to recognize; not recommended for production environment recognition images.
-1 Error Unsupported image format or corrupted file.
Important

Actual testing principle: If the total number of targets in the gallery is small, even slightly higher ratings may still be usable in specific environments. Actual real-device testing is recommended as the benchmark.

Core comprehensive metrics

We primarily focus on the following two comprehensive metrics, each with a dedicated API interface providing overall ratings:

  • Comprehensive recognition difficulty level (detectableRate):

  • Comprehensive tracking difficulty level (trackableRate):

    • If you use EasyAR Sense SDK for local tracking in Unity/App, this metric determines the stability of AR content overlay.
    • Comprehensive rating provided by the /grade/tracking API interface

Other detailed metrics

  • detectableDistinctiveness
  • detectableFeatureCount
  • trackableDistinctiveness
  • trackableFeatureCount
  • trackableFeatureDistribution
  • trackablePatchContrast
  • trackablePatchAmbiguity

These metrics rate from an algorithmic perspective, each still assigning a difficulty score from 0 to 4.

How to view rating results

Detailed ratings for each target image are available in its details within the database. They can be viewed by obtaining target image properties via API or through EasyAR cloud recognition management.

Viewing via EasyAR Web

  • Log in to EasyAR Web and enter the development center
  • Cloud recognition management
  • Select the activated gallery
  • Click Manage to enter gallery management
  • Select the target image
  • Click Manage to view the target image details.

As shown in the figure, the details page includes the two core comprehensive metrics, and a pentagon displays five detailed metrics.

  • Recognizability: Corresponds to the original recognition difficulty comprehensive score (detectableRate) as a five-star rating. Lower original difficulty scores mean more stars and easier recognition.
  • Trackability: Corresponds to the original tracking difficulty comprehensive score (trackableRate) as a five-star rating. Lower original difficulty scores mean more stars and easier tracking.

detail

Obtaining rating results via API – Target image list interface

By using the target image list API or obtaining details, you can access all detailed algorithmic metrics (such as texture distribution, feature point count, etc.) including detectableRate for each target image.

Best practice: Pre-rating via API

When building an automated upload backend, it is recommended to call the rating API before formal upload.

Reference documentation: Image recognition difficulty rating API

Rating API categories

  1. Recognition rating (/grade/detection): Returns only recognition difficulty. (Most common)
  2. Tracking rating (/grade/tracking): Returns only tracking difficulty.
  3. Detailed rating (/grade/detail): Returns multi-dimensional metrics for professional algorithm developers.

Calling preparation

  • Prepare the following items; refer to the Calling preparation checklist for details

    • CRS AppId
    • Authentication credentials: API Key / API Secret or Token
    • Server-end URL: Target image management URL address; use port 443 for https
    • Test image: JPEG/PNG format, size must not exceed 2 MB
  • First convert the local target image to Base64 (macOS / Linux), saving the result into image_base64.txt
base64 -i ./target.jpg | tr -d '\n' > image_base64.txt
  • Please replace the placeholders with actual parameters and run the curl script
    • Your-Server-side-URL → Actual API Host
    • Your-Token → Actual API Key Authorization Token
    • Your-CRS-AppId → Your appId
curl -X POST "https://<Your-Server-side-URL>/grade/detail" \
  -H "Content-Type: application/json" \
  -H "Authorization: <YOUR-TOKEN>" \
  -d '{
    "appId": "<Your-CRS-AppId>",
    "image": "'"$(cat image_base64.txt)"'"
  }'

Related topics:

Next topic: