{"id":512,"date":"2025-12-10T17:14:47","date_gmt":"2025-12-10T17:14:47","guid":{"rendered":"https:\/\/datasymbol.com\/blog\/?p=512"},"modified":"2026-01-12T13:42:13","modified_gmt":"2026-01-12T13:42:13","slug":"how-to-scan-a-single-barcode-when-multiple-barcodes-are-present","status":"publish","type":"post","link":"https:\/\/datasymbol.com\/blog\/2025\/12\/10\/how-to-scan-a-single-barcode-when-multiple-barcodes-are-present\/","title":{"rendered":"How to Scan a Single Barcode When Multiple Barcodes Are Present"},"content":{"rendered":"\n<figure class=\"wp-block-image alignright size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"630\" src=\"https:\/\/datasymbol.com\/blog\/wp-content\/uploads\/2026\/01\/DecodeSingleBarcode.jpg\" alt=\"\" class=\"wp-image-523\" style=\"width:600px\" srcset=\"https:\/\/datasymbol.com\/blog\/wp-content\/uploads\/2026\/01\/DecodeSingleBarcode.jpg 800w, https:\/\/datasymbol.com\/blog\/wp-content\/uploads\/2026\/01\/DecodeSingleBarcode-300x236.jpg 300w, https:\/\/datasymbol.com\/blog\/wp-content\/uploads\/2026\/01\/DecodeSingleBarcode-768x605.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"has-large-font-size\">Using our <strong>DataSymbol Web SDK<\/strong> as an example.<\/p>\n\n\n\n<p>Let\u2019s say you have a label with several barcodes printed on it at the same time.<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"360\" height=\"280\" src=\"https:\/\/datasymbol.com\/blog\/wp-content\/uploads\/2026\/01\/BarcodeLabelWithMultipleBarcodes.jpg\" alt=\"\" class=\"wp-image-525\" srcset=\"https:\/\/datasymbol.com\/blog\/wp-content\/uploads\/2026\/01\/BarcodeLabelWithMultipleBarcodes.jpg 360w, https:\/\/datasymbol.com\/blog\/wp-content\/uploads\/2026\/01\/BarcodeLabelWithMultipleBarcodes-300x233.jpg 300w\" sizes=\"auto, (max-width: 360px) 100vw, 360px\" \/><\/figure>\n\n\n\n<p>If you point the barcode scanner camera at such a label, it\u2019s unclear which barcode will be decoded. But what should you do if, for example, you only need to scan the barcode containing the serial number?<br>Of course, you could try to aim the camera only at the required barcode or cover the others \u2014 but this is very inconvenient.<\/p>\n\n\n\n<p>Our <strong><a href=\"https:\/\/www.datasymbol.com\/barcode-web-sdk\/barcode-scanner-for-web.html\">Barcode Scanner Web SDK<\/a><\/strong> provides a setting called <strong><a href=\"https:\/\/www.datasymbol.com\/barcode-web-sdk\/scanner-settings.html\">barcodeAtPoint<\/a><\/strong>.<br>By default, this parameter is set to <strong>false<\/strong>. However, if you set it to <strong>true<\/strong>, a <strong>crosshair<\/strong> will appear on the barcode scanner screen. Using this crosshair, you can scan only one barcode out of several.<\/p>\n\n\n\n<p>If the crosshair is positioned over the barcode you need, the scanner will fire an event indicating that the barcode has been successfully decoded. All other barcodes that are decoded but do not fall within the crosshair will <strong>not<\/strong> trigger the <strong><a href=\"https:\/\/www.datasymbol.com\/barcode-web-sdk\/dsscanner-events.html\">onBarcode<\/a><\/strong> event.<\/p>\n\n\n\n<p>Here is a short video demonstrating how this works.<br><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How to decode only one barcode on a label using DataSymbol Web SDK\" width=\"422\" height=\"750\" src=\"https:\/\/www.youtube.com\/embed\/oTWckqYZ5No?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<div style=\"height:80px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-large-font-size\"><strong>Click here to test this feature online<\/strong> (to display the crosshair, click the Scanner icon and then toggle the &#8220;Barcode at Point&#8221; switch):<br><a href=\"https:\/\/websdk.datasymbol.com\/\">https:\/\/websdk.datasymbol.com\/<\/a><br><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<br \/>\n<!-- READY TO GET STARTED START --><\/p>\n<div class='blue_rect blue_rect1' style='margin-top:3em; padding:2em;'>\n<h1 class='h15class'>Ready to get started?<\/h1>\n<div class='v18' style='width:60%'>\n\t\tIntegrate the DataSymbol Web SDK into your Web application in under an hour. Check out our tutorials, documentation, source code, or download the demo app to get started right away.\n\t<\/div>\n<p>\t<a class=\"anybutton anybutton3\" href=\"https:\/\/www.datasymbol.com\/barcode-web-sdk\/barcode-scanner-for-web.html\">Barcode Scanner Web SDK<\/a>\n<\/div>\n<p><!-- READY TO GET STARTED STOP --><br \/>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using our DataSymbol Web SDK as an example. Let\u2019s say you have a label with several barcodes printed on it at the same time. If you point the barcode scanner camera at such a label, it\u2019s unclear which barcode will be decoded. But what should you do if, for example, you only need to scan [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":523,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,11],"tags":[],"class_list":["post-512","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-barcode-reader-sdk","category-barcode-scanner-web-sdk"],"_links":{"self":[{"href":"https:\/\/datasymbol.com\/blog\/wp-json\/wp\/v2\/posts\/512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/datasymbol.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/datasymbol.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/datasymbol.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/datasymbol.com\/blog\/wp-json\/wp\/v2\/comments?post=512"}],"version-history":[{"count":12,"href":"https:\/\/datasymbol.com\/blog\/wp-json\/wp\/v2\/posts\/512\/revisions"}],"predecessor-version":[{"id":526,"href":"https:\/\/datasymbol.com\/blog\/wp-json\/wp\/v2\/posts\/512\/revisions\/526"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/datasymbol.com\/blog\/wp-json\/wp\/v2\/media\/523"}],"wp:attachment":[{"href":"https:\/\/datasymbol.com\/blog\/wp-json\/wp\/v2\/media?parent=512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/datasymbol.com\/blog\/wp-json\/wp\/v2\/categories?post=512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/datasymbol.com\/blog\/wp-json\/wp\/v2\/tags?post=512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}