bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
plat_iosplat_android
With ML Kit's barcode scanning API, you can read data encoded using most
standard barcode formats. Barcode scanning happens on the device, and doesn't
require a network connection.
Barcodes are a convenient way to pass information from the real world to your
app. In particular, when using 2D formats such as QR code, you can encode
structured data such as contact information or WiFi network credentials. Because
ML Kit can automatically recognize and parse this data, your app can respond
intelligently when a user scans a barcode.
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.
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.
Works with any orientation
Barcodes are recognized and scanned regardless of their orientation:
right-side-up, upside-down, or sideways.
Runs on the device
Barcode scanning is performed completely on the device, and doesn't
require a network connection.
Example results
Result
Corners
(49,125), (172,125), (172,160), (49,160)
Raw value
2404105001722
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
Was this helpful?
Recommended for you
About these recommendations
These recommendations help you find the content you are looking for. They may be based on the page you’re currently viewing and your account’s saved web and app activity.
ML Kit for Firebase provided ready-to-use ML solutions for app developers. New apps should use the standalone ML Kit library for on-device ML and Firebase ML for cloud-based ML.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-20 UTC."],[],[]]