[firebase_ml_vision] Add rawBytes to the Barcode class #5582
Unanswered
the-mars-rover
asked this question in
Feature request
Replies: 5 comments
-
Submitted a PR for this: #2368 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Updated the linked PR by pulling in latest master |
Beta Was this translation helpful? Give feedback.
0 replies
-
Any updates? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Since the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
Beta Was this translation helpful? Give feedback.
All reactions