Woonivers / react-native-document-scanner

Document scanner, features live border detection, perspective correction, image filters and more ! 📲📸
MIT License
85 stars 71 forks source link

How to prevent Auto-Capture? #46

Open jeffreyabarrios opened 4 years ago

jeffreyabarrios commented 4 years ago

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 commented 3 years ago

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 commented 3 years ago

You can also add the manualOnly prop to the DocumentScanner component

Smit6 commented 2 years ago

@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 commented 2 years ago

try detectionCountBeforeCapture={-1}