[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
-
|
News? |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The problem I am facing:
I need to scan barcodes which are in ISO 8859-1 (latin1) format. However, the
rawValueproperty of theBarcodeclass 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
rawBytesproperty to theBarcodeclass - populate this property usinggetRawByteson Android andrawDataon iOS. Then, in cases that the barcode follows formats other than UTF-8,rawBytescan 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