You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For starters the android implementation was created before iOS so I failed to match the behaviour so the differences could be me trying to make things easier.
Qr* This would be a serializer issue
Bound* my fault here the bounds output on android is what iOS outputs but I joined them so I'll merge it.
rawBytes* seems iOS and Android encoders behave a bit different, both values are rawBytes on their respective platforms byte[] and Data. If needed we can use a custom JSON parse to ensure rawBytes is returned as an Array/ArrayBuffer
Hi !
With mlkit
2.0.0
, on Android, when scanning a *code, I have something like:While I have on iOS:
(both reordered for better readability)
The
BarcodeResult
interface is defined in https://github.com/NativeScript/mlkit/blob/0712e3dfe4b4d2eb4d0caa3e22786c603366f19f/packages/mlkit-barcode-scanning/index.tsGiven
BarcodeResult
is the reference:QR_CODE
andText
instead ofqr_code
andtext
in this case)bounds
is simpler (origin
andsize
are inlined — which I personally prefer BTW)rawBytes
being base64 encoded (I guess) instead of being an array ofany
format
being an arraySide questions about
BarcodeResult
:bounds
withorigin
andsize
in theBarcodeResult
model rather than just inlining them as in the current iOS implementation?Origin
type while we already have aPoint
?rawBytes
asany[]
instead ofnumber[]
(orstring
if base64 is deemed better)The text was updated successfully, but these errors were encountered: