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

How to prevent Auto-Capture? #46

Open
jeffreyabarrios opened this issue Jun 12, 2020 · 4 comments
Open

How to prevent Auto-Capture? #46

jeffreyabarrios opened this issue Jun 12, 2020 · 4 comments

Comments

@jeffreyabarrios
Copy link

jeffreyabarrios commented Jun 12, 2020

Hello! I've tried implementing even the pure example, and from what I read in another response you gave in other issue, even though you add the manual capture, it always makes an auto capture after detecting rectangles, and it is too fast.

I found in an issue that setting: manualOnly={true} does it but when setting that prop, rectangle detection stops working, so it becomes a regular camera.

How can we stop it from auto capturing a picture? So we can let the user take it with the manual function and keep the rectangle detection.

@RamOmri
Copy link

RamOmri commented Dec 15, 2020

On android I simply set the detectionCountBeforeCapture to -1 and on iOS I set it to a really high number so that the user would most likely capture the image before the number of detections for automatic capture is reached

@ribeirogabriel
Copy link

ribeirogabriel commented Apr 27, 2021

You can also add the manualOnly prop to the DocumentScanner component

@Smit6
Copy link

Smit6 commented May 16, 2022

@ribeirogabriel I don't see manualOnly prop in the documentation. I tried giving DocumentScanner a prop called manualOnly={true} but didn't work. Can you please mention the value of manualOnly prop? thanks.

@MD-Boilde
Copy link

try detectionCountBeforeCapture={-1}

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

No branches or pull requests

5 participants