Barcodes and Data Matrix codes are widely used in natural history museums, herbaria, entomological collections, and research laboratories. They provide a fast and reliable way to identify specimens, link physical objects to database records, and reduce manual data-entry errors.
EntomoLabels allows users to incorporate machine-readable codes into scientific labels. However, successful scanning depends not only on how a code is generated, but also on the scanning device, software, print quality, and physical size of the label.
This guide explains how to scan scientific collection labels reliably, choose suitable scanning equipment, and avoid common identification errors.
1. Not all barcodes are the same#
Several barcode formats are particularly relevant to scientific collections.
QR Code
A two-dimensional code that can store identifiers, text, or web addresses. QR codes are widely supported by smartphone cameras and are convenient when labels need to link to online specimen records.
Data Matrix
A compact two-dimensional code especially useful when space is limited. Data Matrix codes are well suited to small specimen labels and laboratory identification systems.
Their small dimensions make them attractive for scientific use, but they can require suitable scanning software and good camera focus.
Code 128
A one-dimensional barcode consisting of vertical bars of different widths. It is commonly used for specimen identifiers, accession numbers, and inventory systems.
Unlike QR codes, Code 128 is not necessarily recognized by a phone's standard camera interface.
Code 39
Another one-dimensional format supported by EntomoLabels and commonly used for short alphanumeric identifiers.
Important: A smartphone may successfully scan QR codes but fail to recognize Data Matrix or Code 128 using the same camera application.
DEMO-2026-014.2. Scanning Codes with a Smartphone#
2.1. iPhones (iOS)#
QR codes#
Most modern iPhones can recognize QR codes directly through the built-in Camera application.
- Open the Camera app.
- Select Photo mode.
- Point the camera toward the QR code.
- Keep the code clearly visible and in focus.
- When a link or supported action appears, tap it.
The iPhone's built-in Code Scanner, available from Control Center, is another option for supported QR-code content.
Data Matrix and Code 128#
For these formats, a dedicated barcode-scanning application may be necessary.
Choose an application that explicitly supports the required barcode type, particularly Data Matrix or Code 128.
Before scanning, check the application's supported formats and permissions. Some scanning applications are intended primarily for retail products or QR-code links and may not recognize scientific specimen identifiers or display their raw values clearly.
Apple provides barcode-recognition capabilities to app developers, including support for Data Matrix and Code 128. This does not mean that the built-in Camera application recognizes every supported format. Actual scanning behavior depends on the application and device.
2.2. Android Smartphones#
Android scanning behavior varies between devices, manufacturers, Android versions, camera applications, and installed Google services. Do not assume that instructions for one Android phone apply to every other model.
QR codes#
Many Android smartphones can recognize QR codes through the built-in Camera application, but the feature and its settings depend on the device manufacturer and software version.
- Open the Camera app and use its normal photo mode.
- Position the phone so that the complete QR code is visible and sharply focused.
- Wait for a link or action to appear, then review it before opening it.
- If nothing appears, check the Camera settings for QR-code or scan-suggestion options.
- If the Camera app does not recognize the code, try Google Lens where available, or use a dedicated barcode-scanning application.
Google Lens is available through different entry points depending on the device, including Google Photos, Google Assistant on many phones, and the Camera application on some phones. Its availability and behavior are therefore device-specific.
Data Matrix and Code 128#
Do not assume that an Android Camera application or Google Lens will recognize Data Matrix or Code 128 merely because it recognizes QR codes.
Google's ML Kit Barcode Scanning API supports QR Code, Data Matrix, and Code 128. However, ML Kit is a capability that application developers can integrate; it does not guarantee that a phone's built-in Camera application, Google Lens configuration, or any particular scanning application exposes all of those formats.
For scientific specimen identifiers, use a dedicated application that explicitly lists Data Matrix and Code 128 support and clearly displays the decoded value before it is accepted or transferred.
A camera application is usually designed for general photography and may provide only selected QR or product-code actions. A dedicated barcode-scanning application can offer broader format support, a defined scanning area, repeated scanning, raw-value display, confirmation, and export options. These features vary between applications and must be checked before use.
Very small specimen labels#
The general techniques for scanning miniature labels are described in Chapter 3.
Keep a small Data Matrix code near the center of the scanning area. In applications using Google's ML Kit, a Data Matrix symbol must intersect the center point of the input image to be recognized, and that implementation recognizes only one Data Matrix code per image.
If a code works in one Android application but not another, the difference may be caused by supported formats, focusing behavior, image processing, application configuration, or the underlying scanning library rather than by the printed label alone.
3. How to scan very small codes#
Small specimen labels require a little more care than ordinary product barcodes.
Use good lighting. Ensure the code is evenly illuminated. Avoid strong reflections, especially on glossy paper or laminated labels.
Find the correct distance. Moving the phone extremely close to the label can make the image blurry. Start farther away, then move gradually until the code is sharply focused.
Use macro mode when available. Phones with macro photography capabilities may provide better focus at short distances. Alternatively, try moderate zoom while keeping the code sharp.
Hold the camera steady. Small movements can cause significant blur when scanning miniature labels.
Keep the label flat. Curved, folded, or uneven surfaces may distort the barcode.
Avoid shadows. A shadow across a small Data Matrix symbol can make recognition more difficult.
Try another scanning application. If a code is clearly visible but not recognized, the software may not support its format.
A useful rule is:
A sharp image taken from a suitable distance is usually better than a blurry image taken extremely close to the label.
4. Print quality matters#
Even a correctly generated barcode may become unreadable after printing.
Several factors influence scanning reliability:
- Print resolution: Very small barcode elements may not reproduce accurately on low-resolution printers.
- Contrast: Dark modules on a clean, light background usually provide the most reliable results.
- Physical dimensions: A barcode can become too small for a particular printer-and-scanner combination.
- Quiet zone: Barcodes require an empty margin around their edges. Text, borders, or other graphics placed too close to the code can interfere with recognition.
- Paper and ink: Ink bleeding, faded prints, excessive toner, and reflective surfaces can reduce readability.
- Scaling: Resizing a completed label during printing may alter the barcode's intended dimensions.
For Data Matrix codes, preserving clearly defined square modules and adequate surrounding white space is particularly important.
There is no universal minimum barcode size that guarantees successful scanning with every smartphone. The practical limit depends on the code's complexity, printer, material, camera, and scanning application.
5. Testing labels before printing an entire collection#
Before producing hundreds or thousands of specimen labels, we recommend a simple verification procedure.
- Create a representative label in EntomoLabels.
- Include a barcode containing a known specimen identifier.
- Print the label at its intended physical size.
- Scan the printed code with the device and application that will be used in the collection.
- Compare the decoded value with the original identifier, including leading zeros and special characters.
- Repeat the test using several labels and, ideally, more than one scanning device.
If the code is difficult to read, try increasing its dimensions, improving print quality, or using a scanner specifically designed for the barcode format.
Testing the actual printed label is more meaningful than scanning an enlarged code displayed on a computer monitor.
6. Troubleshooting: Why won't my phone read the code?#
| Problem | Possible cause | Recommended action |
|---|---|---|
| QR code is not detected | Poor focus, insufficient contrast, or damaged print | Improve lighting and focus; try a larger print |
| Data Matrix is not detected | The scanning application may not support Data Matrix | Use an application with explicit Data Matrix support |
| Code 128 is not detected | Standard camera software may not recognize this format | Use a dedicated 1D barcode scanner app |
| Large codes work, small codes fail | Camera focus, module size, or print resolution | Try macro mode, improve printing, or enlarge the code |
| Code scans but gives the wrong identifier | Incorrect source data, accidental scanning of a neighboring specimen label, scanning interpretation, or print defect | Isolate the intended barcode, scan it again, and verify the decoded identifier against the human-readable specimen number and original data |
| Code works on one phone but not another | Differences in camera optics, software, or supported formats | Test with another compatible scanning application |
7. Avoiding accidental scanning of nearby specimen labels#

In scientific collections, specimens are often stored very close together. A museum drawer, insect collection box, or laboratory tray may contain dozens of labels with individual barcodes or Data Matrix codes.
When several codes are visible to a smartphone camera or barcode scanner, the scanning software may recognize a different code from the one the user intended to scan.
A successful scan does not necessarily mean that the correct specimen has been identified.
This can lead to serious errors when assigning specimen records, updating collection databases, or tracking objects.
How to prevent scanning the wrong label#
1. Isolate the intended barcode
Whenever possible, position the camera so that only the intended code is visible within the scanning area. Cover neighboring labels with a piece of opaque paper or a card if necessary.
2. Use a scanner with a restricted scanning area
Some barcode-scanning applications support a defined scan region or allow the user to select a specific code when several are detected.
A targeting symbol displayed on the screen does not necessarily mean that recognition is restricted to that exact point. Check how the application actually selects codes.
3. Verify the decoded identifier
Before accepting a scan, compare the decoded identifier with the human-readable specimen number printed on the label.
For workflows involving database updates, the scanned identifier should be displayed for confirmation before any record is modified.
4. Avoid automatic processing when multiple codes are visible
For collection management tasks, an application that automatically processes the first recognized code may be unsuitable when labels are densely arranged.
Prefer scanning workflows that require deliberate confirmation of the selected specimen.
5. Repeat ambiguous scans
If there is any uncertainty about which label was recognized, do not accept the result. Isolate the intended label and scan again.
Example: An entomological collection drawer#
A curator is scanning Data Matrix labels attached to several closely positioned insect specimens.
Although the smartphone is pointed toward specimen A, the scanning application detects the code belonging to specimen B.
Both codes are valid and readable. The problem is not barcode quality but incorrect specimen selection.
Without checking the decoded identifier, the curator could accidentally associate specimen B's database record with specimen A.
Best practice: When scanning densely arranged specimens, always verify that the decoded identifier belongs to the intended physical specimen before updating collection records.
Key principle#
Barcode readability and specimen identification accuracy are two different things.
A reliable collection workflow must ensure both that the code can be decoded and that the decoded identifier belongs to the correct specimen.
8. Recommendations for scientific collections#
For long-term collection management, barcode readability should be considered part of label quality control.
We recommend:
- Choosing a barcode format appropriate for the available label space and existing collection-management systems.
- Using consistent barcode dimensions and printing settings.
- Keeping identifiers stable and unambiguous.
- Including a human-readable identifier whenever the label design permits.
- Testing new label templates before adopting them for large collections.
- Documenting which scanners and applications are used by collection staff.
For particularly small labels, Data Matrix can offer an effective balance between information capacity and physical size. However, the selected code must remain readable with the equipment actually used in the collection.
Choosing the Right Scanning Device for Your Workflow#
Smartphones are convenient tools for occasional barcode scanning, fieldwork, and checking individual specimen labels. However, they may not be the most practical solution when hundreds or thousands of labels must be scanned regularly.
For high-volume collection management tasks, a dedicated barcode scanner is often a better choice.
Dedicated scanners may offer faster operation, improved ergonomics, reliable focusing, and easier integration with collection management databases.
When selecting a scanner, consider the following:
- Barcode compatibility: Make sure the device supports the formats used in your collection, particularly Data Matrix, QR Code, and Code 128. A traditional 1D laser scanner will not read Data Matrix codes.
- Small-code performance: Check whether the scanner can reliably read miniature codes printed on specimen labels.
- Targeting precision: In densely arranged collections, a precise aiming system or restricted scanning area helps reduce accidental scans of neighboring specimens.
- Data transfer: USB or Bluetooth scanners that operate as keyboard-input devices can simplify entering specimen identifiers into collection management software.
- Ergonomics: For repetitive scanning tasks, a handheld or presentation scanner may be more comfortable than continuously positioning a smartphone.
Smartphones can still be an excellent alternative#
A smartphone equipped with a suitable scanning application may provide an effective solution, even for frequent scanning.
Look for an application that offers:
- Support for the required barcode formats.
- Reliable recognition of small Data Matrix codes.
- Selection of a specific code when several are visible.
- Clear display and confirmation of the decoded identifier.
- Convenient export or direct transfer of scanned values.
- A workflow adapted to the user's collection management system.
The best solution depends on the number of specimens, scanning frequency, label dimensions, available equipment, and existing data-management procedures.
| Use case | Suggested solution |
|---|---|
| Occasional label checks | Smartphone |
| Fieldwork | Smartphone with a suitable scanning application |
| Scanning hundreds of specimens | Dedicated 2D scanner or an application designed for batch scanning |
| Very small Data Matrix codes | 2D scanner tested with the intended code dimensions |
| Densely arranged labels | Device or application that allows precise selection of the intended code |
| Regular collection-database updates | Scanner with a convenient method of transferring data to the collection-management system |
For occasional scanning, a smartphone may be sufficient. For regular, high-volume workflows, consider a dedicated 2D barcode scanner or a specialized smartphone application designed for repetitive scanning tasks.
9. When should you report a problem?#
If a code generated by EntomoLabels cannot be scanned, first determine whether the issue is limited to one device or application.
If the problem persists, please include the following information when reporting it:
- Barcode format (QR, Data Matrix, Code 128, etc.).
- Scanning device type, make, and model (smartphone or dedicated barcode scanner).
- Operating system and scanning application name and version, or scanner firmware version, where applicable.
- Approximate printed barcode dimensions.
- Printer model and print resolution, if known.
- A clear photograph or sample of the printed label, without confidential specimen information.
This information helps distinguish software compatibility issues from printing, layout, and barcode-generation problems.
Final thoughts#
Smartphones and dedicated barcode scanners can both be highly effective tools for reading barcodes on scientific labels, including very small Data Matrix symbols.
However, successful scanning requires the right combination of barcode format, compatible equipment and software, print quality, targeting precision, and scanning technique.
When these factors are considered together, machine-readable labels can significantly improve the speed, accuracy, and efficiency of scientific collection management.
EntomoLabels — Scientific Label Design and Printing
Technical references#
Platform and scanner behavior can change. These authoritative references support the platform-specific guidance in this article:
