Mendeteksi barcode dan kode QR pada image yang ditentukan.
Deskripsi operasi
Untuk format pengodean image input yang didukung oleh operasi ini, lihat Batas image.
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. Untuk informasi tentang cara mendapatkan nama proyek, lihat Membuat proyek. |
test-project |
| SourceURI |
string |
Yes |
Lokasi penyimpanan file. Alamat OSS mengikuti format oss://${Bucket}/${Object}, di mana |
oss://test-bucket/test-object.jpg |
| CredentialConfig | CredentialConfig |
No |
Biarkan parameter ini kosong kecuali Anda memiliki persyaratan khusus. Konfigurasi otorisasi berantai. Parameter ini bersifat opsional. Untuk informasi lebih lanjut, lihat Menggunakan otorisasi berantai untuk mengakses resource entitas lain. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Badan respons. |
||
| Codes |
array |
Daftar informasi kode QR atau barcode. |
|
| Codes |
Informasi detail tentang kode QR atau barcode. |
||
| 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.