Skip to content

[firebase_ml_vision] Add rawBytes to the Barcode class #1816

Description

@the-mars-rover

The problem I am facing:
I need to scan barcodes which are in ISO 8859-1 (latin1) format. However, the rawValue property of the Barcode class has already been encoded using UTF-8 and contains some replacement characters (�). Consequently, I am unable to determine what the actual value of the data was.

Proposed Solution:
Add a rawBytes property to the Barcode class - populate this property using getRawBytes on Android and rawData on iOS. Then, in cases that the barcode follows formats other than UTF-8, rawBytes can be used with the applicable format.

Some problems which are similar to this (even though they are on different projects):

If there is a better solution to this problem I really would like some help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    impact: crowdAffects many people, though not necessarily a specific customer with an assigned label. (P2)plugin: ml_visiontype: enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions