This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[firebase_ml_vision] Add rawBytes to the Barcode class #1816
Labels
impact: crowd
Affects many people, though not necessarily a specific customer with an assigned label. (P2)
plugin: ml_vision
type: enhancement
New feature or request
The problem I am facing:
I need to scan barcodes which are in ISO 8859-1 (latin1) format. However, the
rawValue
property of theBarcode
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 theBarcode
class - populate this property usinggetRawBytes
on Android andrawData
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.
The text was updated successfully, but these errors were encountered: