Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

How to stop Quagga after barcode detected #26

Open
mean-cj opened this issue Oct 20, 2019 · 2 comments
Open

How to stop Quagga after barcode detected #26

mean-cj opened this issue Oct 20, 2019 · 2 comments

Comments

@mean-cj
Copy link

mean-cj commented Oct 20, 2019

Hello

after detected the barcode my camera is not stop
how to destroy or Quagga.stop() after barcode detected

Thank you so much.

@defji
Copy link

defji commented Nov 10, 2019

same question here, how to handle this quickly?

@MathieuDerelle
Copy link
Contributor

MathieuDerelle commented Jan 7, 2020

video is stopped when the component is destroyed

so something like this
<v-quagga v-if="hasDetectedABarcode" />
onDetected(result) { this.hasDetectedABarcode = true }
would work

duplicate of #16

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants