tencent cloud

Cloud Object Storage

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Overview
Features
Use Cases
Strengths
Concepts
Regions and Access Endpoints
Specifications and Limits
Service Regions and Service Providers
Billing
Billing Overview
Billing Method
Billable Items
Free Tier
Billing Examples
Viewing and Downloading Bill
Payment Overdue
FAQs
Getting Started
Console
Getting Started with COSBrowser
User Guide
Creating Request
Bucket
Object
Data Management
Batch Operation
Global Acceleration
Monitoring and Alarms
Operations Center
Data Processing
Content Moderation
Smart Toolbox
Data Processing Workflow
Application Integration
User Tools
Tool Overview
Installation and Configuration of Environment
COSBrowser
COSCLI (Beta)
COSCMD
COS Migration
FTP Server
Hadoop
COSDistCp
HDFS TO COS
GooseFS-Lite
Online Tools
Diagnostic Tool
Use Cases
Overview
Access Control and Permission Management
Performance Optimization
Accessing COS with AWS S3 SDK
Data Disaster Recovery and Backup
Domain Name Management Practice
Image Processing
Audio/Video Practices
Workflow
Direct Data Upload
Content Moderation
Data Security
Data Verification
Big Data Practice
COS Cost Optimization Solutions
Using COS in the Third-party Applications
Migration Guide
Migrating Local Data to COS
Migrating Data from Third-Party Cloud Storage Service to COS
Migrating Data from URL to COS
Migrating Data Within COS
Migrating Data Between HDFS and COS
Data Lake Storage
Cloud Native Datalake Storage
Metadata Accelerator
GooseFS
Data Processing
Data Processing Overview
Image Processing
Media Processing
Content Moderation
File Processing Service
File Preview
Troubleshooting
Obtaining RequestId
Slow Upload over Public Network
403 Error for COS Access
Resource Access Error
POST Object Common Exceptions
API Documentation
Introduction
Common Request Headers
Common Response Headers
Error Codes
Request Signature
Action List
Service APIs
Bucket APIs
Object APIs
Batch Operation APIs
Data Processing APIs
Job and Workflow
Content Moderation APIs
Cloud Antivirus API
SDK Documentation
SDK Overview
Preparations
Android SDK
C SDK
C++ SDK
.NET(C#) SDK
Flutter SDK
Go SDK
iOS SDK
Java SDK
JavaScript SDK
Node.js SDK
PHP SDK
Python SDK
React Native SDK
Mini Program SDK
Error Codes
Harmony SDK
Endpoint SDK Quality Optimization
Security and Compliance
Data Disaster Recovery
Data Security
Cloud Access Management
FAQs
Popular Questions
General
Billing
Domain Name Compliance Issues
Bucket Configuration
Domain Names and CDN
Object Operations
Logging and Monitoring
Permission Management
Data Processing
Data Security
Pre-signed URL Issues
SDKs
Tools
APIs
Agreements
Service Level Agreement
Privacy Policy
Data Processing And Security Agreement
Contact Us
Glossary

Vehicle License Plate Recognition

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-01-09 22:16:57

Feature Description

The vehicle license plate detection feature uses a synchronous request method. You can use this interface to detect vehicles in images and identify information such as the vehicle's brand, color, position, and license plate location.
Note:
This interface is a GET request, uses a synchronous request method, and requires carrying a signature. For specific signature settings, please see Request Signature.
Unsupported for processing images of archive storage type and deep archive storage type on COS. If you need to process such images, please first restore archived file.

Authorization Description

When used by a sub-account, the ci:CreateLicensePlateJob permission is required. For details, see Cloud Infinite action.

Service Activation

Using this feature requires enabling Cloud Infinite in advance and binding a bucket. For details, see Bind bucket.
Use this feature requires enabling AI Content Recognition service in advance via console or API. For details, see Enable AI Content Recognition service.

Use Limits

When using this API, please confirm the relevant restrictions first. For details, see Usage limits.
Supported image formats: PNG, JPG, JPEG.
Image size: The downloaded image after encoding must not exceed 4MB.
Image pixels: It is advisable to be larger than 50*50 pixels; otherwise, it will affect the recognition effect.
Aspect ratio: It is advisable that the ratio of the long side to the short side is less than 5:1.

Fee Description

If the image belongs to the infrequent storage type on COS, a successful API call will incur COS infrequent data retrieval fees.


Request

Request sample:

GET /<ObjectKey>?ci-process=DetectCar HTTP/1.1
Host: <BucketName-APPID>.cos.<Region>.myqcloud.com
Date: <GMT Date>
Authorization: <Auth String>
Note:
Authorization: Auth String. For details, see Request Signature document.

Request parameters

Parameter Name
Description
Type
Required or Not
ObjectKey
object filename, for example: folder/document.jpg
String
Yes
ci-process
Cloud Infinite processing capability, vehicle identification fixed as DetectCar
String
Yes

Request header.

This API only uses common request headers. For details, see Common Request Headers documentation.

Request body.

The request does not have a request body.

Response

Response Headers

This API only returns the public response header. For details, see Common Response Headers documentation.

Response Body

The response body is returned as application/xml. An example including the complete node data is shown below:
<Response>
<RequestId></RequestId>
<CarTags>
<Serial></Serial>
<Brand></Brand>
<Type></Type>
<Color><Color>
<Confidence></Confidence>
<Year></Year>
<CarLocation>
<X></X>
<Y></Y>
</CarLocation>
<PlateContent>
<Plate></Plate>
<Color></Color>
<Type></Type>
<PlateLocation>
<X></X>
<Y></Y>
</PlateLocation>
</PlateContent>
</CarTags>
</Response>
The data are as follows:
Node Name (Keyword)
Parent Node
Description
Type
Response
None.
Container for saving results
Container
The content of Response
Node Name (Keyword)
Parent Node
Description
Type
RequestId
Response
Unique request ID, which is returned for each request. RequestId is required for locating a problem.
String
CarTags
Response
Result array of vehicle attribute recognition, support returning multiple vehicle information
Container
content of the CarTags node
Node Name (Keyword)
Parent Node
Description
Type
Serial
CarTags
Car series
String
Brand
CarTags
Vehicle brand
String
Type
CarTags
Vehicle type
String
Color
CarTags
Vehicle color
String
Confidence
CarTags
Confidence degree, 0 - 100
Int
Year
CarTags
Year, return 0 if the year cannot be identified
Int
CarLocation
CarTags
Coordinate information of the vehicle in the image, may return multiple coordinate points
Container
PlateContent
CarTags
license plate information, including license plate number, license plate color, and license plate location. Supports returning multiple license plates.
Container
content of the CarLocation node
Node Name (Keyword)
Parent Node
Description
Type
X
CarLocation
Horizontal coordinate x
Int
Y
CarLocation
Vertical coordinate y
Int
content of the PlateContent node
Node Name (Keyword)
Parent Node
Description
Type
Plate
PlateContent
License plate number information
String
Color
PlateContent
Color of the license plate
String
Type
PlateContent
Type of license plate, such as ordinary blue plate
String
PlateLocation
PlateContent
LocatioC of the license plate
Container
content of the PlateLocation node
Node Name (Keyword)
Parent Node
Description
Type
X
PlateLocation
X coordinates of the license plate's upper-left, upper-right, lower-left, and lower-right corners
Int
Y
PlateLocation
Y coordinates of the license plate's upper-left, upper-right, lower-left, and lower-right corners
Int

Error Codes

This request returns common error responses and error codes. For more information, see Error Codes.

Examples

Request

GET test.jpg?ci-process=DetectCar HTTP/1.1
Authorization: q-sign-algorithm=sha1&q-ak=**********************************&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=**************************************
Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.com

Response

HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: 414641
Date: Thu, 15 Jun 2017 12:37:29 GMT
Server: tencent-ci
x-ci-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****

<Response>
<RequestId>NjE1MzEyMDlfOTBmYTUwNjRfNzUz****</RequestId>
<CarTags>
<Serial>Mercedes-Benz S-Class</Serial>
<Brand>Mercedes-Benz</Brand>
<Type>Sedan</Type>
<Color>Black</Color>
<Confidence>98</Confidence>
<Year>0</Year>
<CarLocation>
<X>8</X>
<Y>364</Y>
</CarLocation>
<CarLocation>
<X>8</X>
<Y>5</Y>
</CarLocation>
<CarLocation>
<X>637</X>
<Y>5</Y>
</CarLocation>
<CarLocation>
<X>637</X>
<Y>364</Y>
</CarLocation>
<PlateContent>
<Plate>Shaanxi ASxxxL</Plate>
<Color>Blue</Color>
<Type>Ordinary blue plate</Type>
<PlateLocation>
<X>263</X>
<Y>309</Y>
</PlateLocation>
<PlateLocation>
<X>263</X>
<Y>239</Y>
</PlateLocation>
<PlateLocation>
<X>459</X>
<Y>239</Y>
</PlateLocation>
<PlateLocation>
<X>459</X>
<Y>309</Y>
</PlateLocation>
</PlateContent>
</CarTags>
<CarTags>
<Serial>Wuling Hongguang</Serial>
<Brand>Wuling</Brand>
<Type>Van</Type>
<Color>White</Color>
<Confidence>0</Confidence>
<Year>0</Year>
<CarLocation>
<X>0</X>
<Y>228</Y>
</CarLocation>
<CarLocation>
<X>0</X>
<Y>81</Y>
</CarLocation>
<CarLocation>
<X>73</X>
<Y>81</Y>
</CarLocation>
<CarLocation>
<X>73</X>
<Y>228</Y>
</CarLocation>
</CarTags>
</Response>


Ajuda e Suporte

Esta página foi útil?

comentários