Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

processEveryNthFrame on Android no results returned #44

Open
brooklax opened this issue Feb 24, 2023 · 12 comments
Open

processEveryNthFrame on Android no results returned #44

brooklax opened this issue Feb 24, 2023 · 12 comments
Labels
bug Something isn't working

Comments

@brooklax
Copy link

@triniwiz apologies but I just tested with a new android build on my side and although I don't get an exception anymore like before, it also seems like adding the property now results in no results returned for the detection event. When I remove the property scanning works but it's not accurate with Code39 barcode types especially.

<MLKitView
cameraPosition="back"
:detectionType="type || 'all'"
:barcodeFormats="formats"
:processEveryNthFrame="60"
@detection="onScanResult"
:pause="pauseScanner"
:torchOn="torchOn"
/>

@brooklax brooklax changed the title rocessEveryNthFrame on Android no results returned processEveryNthFrame on Android no results returned Feb 24, 2023
@triniwiz triniwiz added the bug Something isn't working label Feb 24, 2023
@devlinpadayachee
Copy link

UpVote. Thanks @triniwiz. We really need a fix on this one.

@devlinpadayachee
Copy link

devlinpadayachee commented Apr 13, 2023

@triniwiz Good day Sir, this is affecting our business quite badly, please can we give this some attention? Thanks

@triniwiz
Copy link
Member

@devlinpadayachee are you on v2 ?

@brooklax
Copy link
Author

@triniwiz Devlin and work for the same company, we tried with:

"@nativescript/mlkit-barcode-scanning": "^2.0.0",
"@nativescript/mlkit-core": "2.0.0",

No difference unfortunately, when I add processEveryNthFrame on Android it doesn't trigger the @detection event.

@brooklax
Copy link
Author

@triniwiz anything I can do to make it easier to investigate this issue?

@triniwiz
Copy link
Member

So only when using processEveryNthFrame it fails ?

@devlinpadayachee
Copy link

Hi, Yes Good Sir,

On IOS processEveryNthFrame works perfectly and returns results.
When the processEveryNthFrame flag is added to Android it returns no results.

This is how we have implemented it:

<MLKitView
cameraPosition="back"
:detectionType="type || 'all'"
:barcodeFormats="formats"
:processEveryNthFrame="60"
@detection="onScanResult"
:pause="pauseScanner"
:torchOn="torchOn"
/>

BR

@brooklax
Copy link
Author

@triniwiz let me know if you need a sample app to help replicate

@triniwiz
Copy link
Member

@brooklax my tests are usually done here

@brooklax
Copy link
Author

hi @triniwiz , please clarify your previous message? I am offering to make a NS Vue app you could use to debug the issue?

@harfyt
Copy link

harfyt commented Jul 26, 2024

Hello, any update on this?

I' ve got these packages and when I add the property then scanning stops working (detection) not triggering

I test on Android platform (targetSdk 34)

"@nativescript/mlkit-barcode-scanning": "^2.1.0",
    "@nativescript/mlkit-core": "^2.1.0",

"@nativescript/angular": "^18.0.0",
    "@nativescript/core": "~8.8.0"

@triniwiz
Copy link
Member

@harfyt with 8.8 you should try

"@nativescript/mlkit-barcode-scanning": "3.0.0-alpha.3",
"@nativescript/mlkit-core": "3.0.0-alpha.3",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants