AgentSkillsCN

plate-image-recognition

使用CarsXE车牌识别API,从图片URL中提取车牌号码。当用户分享了一张车辆或车牌的照片,并希望识别出车牌号码时使用。

SKILL.md
--- frontmatter
name: plate-image-recognition
description: Extract a license plate number from an image URL using the CarsXE Plate Recognition API. Use this when a user shares a photo of a vehicle or license plate and wants to identify the plate number.

When the user shares an image containing a license plate and wants to extract the plate number:

  1. Make an HTTP POST request:
    • URL: https://api.carsxe.com/platerecognition?key={CARSXE_API_KEY}
    • Headers: Content-Type: application/json
    • Body:
      json
      {
        "image": "{IMAGE_URL}"
      }
      
  2. Display the extracted plate number and confidence score.
  3. Offer to immediately decode the plate using the plate-decoder skill.
  4. If the image is unclear, suggest the user retry with a better photo.
  5. If the API key is missing, tell the user to set the CARSXE_API_KEY environment variable.