Introduction¶
In businesses such as auto insurance, vehicle management, and second-hand cars, it is often necessary to enter fields from the main and sub-pages of a vehicle license into a system. Hand-writing parsing rules is costly, there are many fields (license plate, VIN, approved load mass, inspection records, etc.), and risks like reshoots and photocopies must be handled. If you directly integrate the Tencent Cloud Vehicle License Recognition interface in a conversational development environment, you need to be familiar with the SDK, parameters, and warning codes, which is not “discoverable” enough for an Agent.
Below is an introduction to Tencent Cloud Vehicle License Recognition (@tencent-adm/tencentcloud-ocr-vehiclelicense, current version 1.0.4) on SkillHub. It encapsulates Tencent Cloud’s VehicleLicenseOCR into a standard Skill. Published by the Tencent Cloud OCR Team, it carries the requires_api_key=true tag. It is suitable for installation in clients supporting Skills (such as Cursor, Claude Code, Codex), allowing the Agent to complete recognition by calling scripts according to the documentation.
What is this¶
In one sentence: It is an Agent-oriented Tencent Cloud Vehicle License OCR calling skill. It requests the official VehicleLicenseOCR interface via scripts/main.py and outputs structured JSON.
- Coordinate:
@tencent-adm/tencentcloud-ocr-vehiclelicense - Source: SkillHub enterprise category dev-programming
- Official Entry: SkillHub Skill Page, API Index
- Interface Documentation (Referenced within the Skill): Tencent Cloud VehicleLicenseOCR
What the Skill solves is: When the conversation requires “reading a vehicle license image -> getting fields -> optional quality warnings,” the Agent has fixed trigger conditions, environment variable descriptions, and command examples, so there is no need to check the API from scratch every time.
Core Features¶
The following capabilities are consistent with the SKILL.md and script instructions within the Skill.
Recognition Scope and Fields¶
- Front Page
FRONT: License plate number, vehicle type, owner, address, usage nature, brand/model, Vehicle Identification Number (VIN), engine number, registration date, issue date, seal, etc. - Back Page
BACK: License plate number, file number, approved occupancy, gross mass, curb mass, approved load mass, external dimensions, approved total towing mass, remarks, inspection records, back page code, fuel type, etc. - Double Side
DOUBLE: Recognizes both the front and back pages in the same image. - Electronic Vehicle License: In addition to normal fields, the Skill documentation states that the front page may include status, inspection validity period, and generation time, while the back page may include extended fields such as address, issuing authority, and body color.
- Tractor License: Distinguishes between tractor front/back pages via
TractorCardSide.
Input and Quality Detection¶
- Input options (choose one): ImageBase64 or ImageUrl (if both are passed, only the URL is used); Base64 encoded size must not exceed 7M; resolution recommended above 500×800; formats: PNG/JPG/JPEG/BMP.
- Warnings: Photocopies, reshoots, reflections, blurriness, incomplete borders, etc. (corresponding to warning codes -9102 to -9106, which may appear simultaneously).
Installation and Activation¶
1. Install SkillHub CLI (if not installed)¶
First, check if the CLI exists:
command -v skillhub && skillhub --version
If not installed, follow the SkillHub Installation Instructions to perform a full installation:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
2. Install this Skill to the current Agent’s skills directory¶
When installing, you must use --dir to point to the current client’s skills directory; otherwise, it defaults to ./skills/ and may not be loaded by the Agent. Common paths (excerpted from official installation docs):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
Installation command example (replace <skills directory> with your actual path):
skillhub install @tencent-adm/tencentcloud-ocr-vehiclelicense --dir <skills directory>
The SkillHub page also states: Please install @tencent-adm/tencentcloud-ocr-vehiclelicense according to the above installation documentation.
3. Configure Tencent Cloud Keys and Python Dependencies¶
The Skill requires Python 3.6+ and the SDK installation:
pip install tencentcloud-sdk-python
Set in the environment (variable names from Skill documentation):
export TENCENTCLOUD_SECRET_ID="Your SecretId"
export TENCENTCLOUD_SECRET_KEY="Your SecretKey"
You need to enable OCR-related services in Tencent Cloud and ensure account billing is normal; arrears, exhausted resource packages, etc., will result in corresponding official error codes (the Skill includes explanations for ResourceUnavailable.InArrears, etc.).
Typical Usage¶
After entering the installed Skill directory, run scripts/main.py. The following examples are from the official Skill SKILL.md; paths and URLs need to be replaced according to your environment.
Recognize Front Page via URL:
python scripts/main.py --image-url "https://example.com/vehicle_license.jpg" --card-side FRONT
Recognize Back Page:
python scripts/main.py --image-url "https://example.com/vehicle_license_back.jpg" --card-side BACK
Double Side Recognition:
python scripts/main.py --image-url "https://example.com/vehicle_license.jpg" --card-side DOUBLE
Base64 or Local File Path (Default recognizes Front Page):
python scripts/main.py --image-base64 "/path/to/vehicle_license.jpg"
Tractor License Back Page:
python scripts/main.py --image-url "https://example.com/tractor_license.jpg" --tractor-card-side BACK
Specify Region (Beijing example):
python scripts/main.py --image-url "https://example.com/vehicle_license.jpg" --region ap-beijing
On success, JSON is returned: the front page contains FrontInfo, the back page contains BackInfo, and may include RecognizeWarnCode / RecognizeWarnMsg and RequestId. The Skill documentation provides field example structures to facilitate integration with downstream forms or databases.
On the Agent side, when a user proposes requirements such as “extract license plate, VIN, inspection records from a vehicle license image” or “determine if it is a photocopy/reshoot,” this Skill should be triggered and called according to the above parameters, rather than guessing the interface form.
Applicable Scenarios and Notes¶
Who is it for
- Teams already using Cursor, Claude Code, Codex, etc., who want to make vehicle license OCR a reusable Skill.
- Scenarios requiring combinations of Front/Back/Double pages, electronic licenses, and tractor licenses, preferring a unified approach via Tencent Cloud VehicleLicenseOCR.
- Processes that want to utilize official warning codes for risk control alerts (photocopies, reshoots) in addition to recognition results.
Limitations and Notes
- Keys and Fees:
TENCENTCLOUD_SECRET_ID/TENCENTCLOUD_SECRET_KEYmust be configured; calls generate Tencent Cloud OCR billing; the Skill tag indicates API Key is required. - Image Quality: Blurriness, non-vehicle licenses, mismatch between Front/Back pages and
CardSide, or multiple licenses of the same side in one image will triggerFailedOperation.*errors listed in the Skill documentation. Retakes or parameter changes are needed at the business layer. - URL Fetching:
ImageUrldownloads must be within interface limits (Skill description: download time not exceeding 3 seconds); intranet or slow link URLs are prone to failure. - Compliance: Vehicle licenses contain sensitive information such as personal addresses and owners. Database storage and logs must comply with your privacy and industry standards; the Skill only performs recognition and does not perform desensitization.
- Version: Subject to the current v1.0.4 on SkillHub; upgrades can be done via
skillhubto update the same coordinate in the Agent skills directory.
SkillHub side statistics (from captured data): Rating 100000, Downloads approx 1982, Installs approx 126, for selection reference.
Conclusion¶
Tencent Cloud Vehicle License Recognition consolidates the field descriptions, warning codes, and CLI examples of VehicleLicenseOCR into a single Skill. It is suitable for “viewing image -> structured fields -> optional risk warnings” within an Agent workflow. Remember to point --dir to the current client’s skills directory when installing, and prepare Tencent Cloud keys and SDK in advance.
Official Address: https://api.skillhub.cn/tencent-adm/tencentcloud-ocr-vehiclelicense
Skill Page: https://www.skillhub.cn/skills/tencent-adm/tencentcloud-ocr-vehiclelicense