با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
اسکن بارکد
plat_iosplat_android
با API اسکن بارکد ML Kit، می توانید داده های کدگذاری شده را با استفاده از اکثر فرمت های بارکد استاندارد بخوانید. اسکن بارکد در دستگاه انجام می شود و نیازی به اتصال شبکه ندارد.
بارکدها راهی مناسب برای انتقال اطلاعات از دنیای واقعی به برنامه شما هستند. به طور خاص، هنگام استفاده از فرمتهای دو بعدی مانند کد QR، میتوانید دادههای ساختاریافته مانند اطلاعات تماس یا اعتبار شبکه WiFi را رمزگذاری کنید. از آنجایی که ML Kit میتواند بهطور خودکار این دادهها را شناسایی و تجزیه کند، برنامه شما میتواند به صورت هوشمندانه زمانی که کاربر بارکد را اسکن میکند، پاسخ دهد.
فرمت های دو بعدی: آزتک، ماتریس داده، PDF417، کد QR
تشخیص فرمت خودکار
همه فرمت های بارکد پشتیبانی شده را به طور همزمان اسکن کنید، بدون نیاز به تعیین فرمت مورد نظر. یا با محدود کردن آشکارساز به فرمتهایی که به آنها علاقه دارید، سرعت اسکن را افزایش دهید.
داده های ساخت یافته را استخراج می کند
داده های ساختاریافته ذخیره شده با استفاده از یکی از فرمت های 2 بعدی پشتیبانی شده به طور خودکار تجزیه می شوند. انواع اطلاعات پشتیبانی شده شامل آدرسهای اینترنتی، اطلاعات تماس، رویدادهای تقویم، آدرسهای ایمیل، شماره تلفن، پیامهای پیام کوتاه، ISBN، اطلاعات اتصال WiFi، موقعیت جغرافیایی و اطلاعات درایور استاندارد AAMVA است.
با هر جهتی کار می کند
بارکدها بدون توجه به جهت آنها شناسایی و اسکن می شوند: سمت راست به بالا، وارونه، یا پهلو.
روی دستگاه اجرا می شود
اسکن بارکد به طور کامل بر روی دستگاه انجام می شود و نیازی به اتصال به شبکه ندارد.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Barcode Scanning\n================\n\nplat_ios plat_android \n\nWith ML Kit's barcode scanning API, you can read data encoded using most\nstandard barcode formats. Barcode scanning happens on the device, and doesn't\nrequire a network connection.\n\nBarcodes are a convenient way to pass information from the real world to your\napp. In particular, when using 2D formats such as QR code, you can encode\nstructured data such as contact information or WiFi network credentials. Because\nML Kit can automatically recognize and parse this data, your app can respond\nintelligently when a user scans a barcode.\n\n[iOS](/docs/ml-kit/ios/read-barcodes)\n[Android](/docs/ml-kit/android/read-barcodes)\n\nIf you're a Flutter developer, you might be interested in\n[FlutterFire](https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_ml_vision),\nwhich includes a plugin for Firebase's ML Vision APIs.\n| This is a beta release of ML Kit for Firebase. This API might be changed in backward-incompatible ways and is not subject to any SLA or deprecation policy.\n\nKey capabilities\n----------------\n\n|-----------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Reads most standard formats | - Linear formats: Codabar, Code 39, Code 93, Code 128, EAN-8, EAN-13, ITF, UPC-A, UPC-E - 2D formats: Aztec, Data Matrix, PDF417, QR Code |\n| Automatic format detection | Scan for all supported barcode formats at once, without having to specify the format you're looking for. Or, boost scanning speed by restricting the detector to only the formats you're interested in. |\n| Extracts structured data | Structured data stored using one of the supported 2D formats are automatically parsed. Supported information types include URLs, contact information, calendar events, email addresses, phone numbers, SMS message prompts, ISBNs, WiFi connection information, geographic location, and AAMVA-standard driver information. |\n| Works with any orientation | Barcodes are recognized and scanned regardless of their orientation: right-side-up, upside-down, or sideways. |\n| Runs on the device | Barcode scanning is performed completely on the device, and doesn't require a network connection. |\n\nExample results\n---------------\n\n|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | | Result || |---------------|------------------------------------------| | **Corners** | (49,125), (172,125), (172,160), (49,160) | | **Raw value** | 2404105001722 | |\n\n|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | | Result || |----------------------|-----------------------------------------------------------------------------------------------------------------| | **Corners** | (87,87) (612,87) (612,612) (87,612) | | **Raw value** | `WIFI:S:SB1Guest;P:12345;T:WEP;;` | | **WiFi information** | |--------------|----------| | **SSID** | SB1Guest | | **Password** | 12345 | | **Type** | WEP | | |"]]