Mendeteksi barcode dan kode QR dalam gambar.
Deskripsi operasi
Untuk informasi mengenai format encoding gambar yang didukung oleh operasi ini, lihat Batasan pada gambar.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:DetectImageCodes |
none |
*Project
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
Nama proyek. Anda dapat memperoleh nama proyek dari respons operasi CreateProject. |
test-project |
| SourceURI |
string |
Yes |
URI bucket Object Storage Service (OSS) tempat file gambar disimpan. Tentukan nilai dalam format oss://${Bucket}/${Object}. |
oss://test-bucket/test-object.jpg |
| CredentialConfig | CredentialConfig |
No |
Jika Anda tidak memiliki persyaratan khusus, biarkan parameter ini kosong. Pengaturan rantai otorisasi. Untuk informasi selengkapnya, lihat Gunakan rantai otorisasi untuk mengakses sumber daya entitas lain. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| Codes |
array |
Barcode atau kode QR. |
|
| Codes |
Informasi barcode atau kode QR. |
||
| RequestId |
string |
ID permintaan. |
6E93D6C9-5AC0-49F9-914D-E02678D3**** |
Contoh
Respons sukses
JSONformat
{
"Codes": [
{
"Content": "https://www.example.com",
"Confidence": 0.9,
"Boundary": {
"Width": 200,
"Height": 300,
"Left": 10,
"Top": 30,
"Polygon": [
{
"X": 10,
"Y": 10
}
]
},
"Type": "qrcode"
}
],
"RequestId": "6E93D6C9-5AC0-49F9-914D-E02678D3****"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.