Introduction¶
In parking lot management, roadside monitoring, and risk control auditing, it is often necessary to read license plate numbers from car images, along with their colors and positions. Integrating OCR SDKs and writing authentication and parameter validation logic often leads to repetitive work in conversational development. Below is an introduction to the enterprise skill on SkillHub: Tencent Cloud License Plate Recognition (@tencent-adm/tencentcloud-ocr-licenseplate). It encapsulates Tencent Cloud’s LicensePlateOCR into an Agent-followable SKILL.md and scripts, allowing the model to trigger calls according to the documentation when identifying Mainland China motor vehicle license plates.
What is this¶
Tencent Cloud License Plate Recognition is a Skill released by the Tencent Cloud OCR team (Source: enterprise, Category: dev-programming, Current Version: 1.0.3). It is designed for the automatic localization and recognition of “Mainland China motor vehicle license plates.” The underlying layer corresponds to the API documentation License Plate Recognition (Request domain: ocr.tencentcloudapi.com, Action: LicensePlateOCR).
Compared to directly integrating the API in business code, this Skill embeds usage timing, environment variables, script entry points, and return field descriptions into the skill package, facilitating stable execution within conversations for clients with Skills support, such as Cursor and Claude Code.
Core Features¶
The following capabilities are derived from the skill introduction and the SKILL.md within the package, and are consistent with the official API description:
- License Plate Number: Recognizes and returns the number (e.g.,
京AF0236). - License Plate Color: Supports White, Black, Blue, Green, Yellow, Yellow-Green, Temporary, Painted, and Others.
- Confidence and Coordinates: Returns a confidence score between 0–100, as well as the pixel bounding box of the license plate in the original image (
X,Y,Width,Height). - Multi-Plate Recognition: When multiple plates appear in one image, lists all results via
LicensePlateInfosand includes thePlateCount. - License Plate Category: Such as Entity Plate, Non-Entity Plate, etc. (Field:
LicensePlateCategory). - Input Method: Choose either
ImageUrlorImageBase64; if both are provided, only the URL is used.
The official API default rate limit is 10 requests/second (see Tencent Cloud documentation). The Skill tag indicates requires_api_key=true, requiring configuration of Tencent Cloud API keys before invocation.
Installation and Activation¶
Install SkillHub CLI¶
If the CLI is not installed on your machine, you can check the version first:
command -v skillhub && skillhub --version
If not installed, follow the SkillHub Installation Guide to perform a full installation (example):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Install this Skill¶
When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, if it defaults to ./skills/, it may not be loaded by the client.
skillhub install tencentcloud-ocr-licenseplate --namespace tencent-adm --dir ~/.cursor/skills/
Common skills paths for various clients (excerpted from SkillHub installation docs, select according to your actual environment):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
You can also send the installation prompt from the SkillHub skill page to your AI, asking it to install @tencent-adm/tencentcloud-ocr-licenseplate according to https://skillhub.cn/install/skillhub.md.
Runtime Environment and Keys¶
The skill package requires:
- Python 3.6+
- Dependency:
pip install tencentcloud-sdk-python - Environment Variables:
TENCENTCLOUD_SECRET_IDTENCENTCLOUD_SECRET_KEY
You need to activate the text recognition service on Tencent Cloud and ensure account billing is active; arrears, exhaustion of resource packages, etc., will result in corresponding business error codes (e.g., ResourceUnavailable.InArrears).
Typical Usage¶
After entering the skill directory, initiate recognition via scripts/main.py. Parameters are consistent with the API: choose either ImageUrl or ImageBase64; images support PNG, JPG, JPEG, but not GIF; Base64 encoded data must not exceed 10MB, and URL downloads must not exceed 3 seconds.
Via Image URL:
python scripts/main.py --image-url "https://example.com/car.jpg"
Via Local Image (Script handles Base64):
python scripts/main.py --image-base64 ./car.jpg
Specify Region (Optional):
python scripts/main.py --image-url "https://example.com/car.jpg" --region ap-beijing
Upon success, it returns JSON containing core fields such as Number, Confidence, Color, Rect, LicensePlateInfos, PlateCount, RequestId, etc. (structure consistent with examples in the skill documentation).
A typical expression in an Agent conversation could be: “Recognize the license plate color and number in this image” accompanied by an image path or URL; when the model matches intents like “License Plate OCR” or “Multi-plate,” it should load this Skill and call the above script rather than fabricating recognition results.
Use Cases and Notes¶
Suitable for:
- Scenarios requiring the recognition of Mainland China motor vehicle license plates, specifically needing color, confidence, bounding box coordinates, or multi-plate lists.
- Users already using Tencent Cloud OCR who wish to solidify the invocation method of LicensePlateOCR for coding Agents.
Notes:
- The recognition target is Mainland China motor vehicle license plates; for cross-border or other document types, select the corresponding OCR skill or interface.
- Only supports PNG/JPG/JPEG; large images, blurry images, or download timeouts may trigger errors such as
FailedOperation.DownLoadErrororLimitExceeded.TooLargeFileError. - Invocations incur Tencent Cloud OCR costs; manage keys and quotas independently. Do not write keys into repositories or conversation logs.
- The SkillHub page displays a rating of 100000, with 2063 downloads and 140 installations for this skill (statistics are subject to SkillHub display).
Conclusion¶
Tencent Cloud License Plate Recognition consolidates the trigger conditions, script usage, and return structure of LicensePlateOCR into a single Skill, making it suitable for structured license plate extraction within Agent workflows.
Official Entry: https://api.skillhub.cn/tencent-adm/tencentcloud-ocr-licenseplate;
SkillHub Browse Page: https://www.skillhub.cn/skills/tencent-adm/tencentcloud-ocr-licenseplate.