react-native-rectangle-doc-scanner 0.17.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -146,7 +146,8 @@ const DocScanner = ({ onCapture, overlayColor = '#e7a649', autoCapture = true, m
146
146
  if (__DEV__) {
147
147
  console.log('[DocScanner] area ratio', area / (width * height));
148
148
  }
149
- if (area < width * height * 0.005) {
149
+ // Lower threshold to detect smaller documents
150
+ if (area < width * height * 0.0001) {
150
151
  continue;
151
152
  }
152
153
  step = `contour_${i}_arcLength`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": {
@@ -167,7 +167,8 @@ export const DocScanner: React.FC<Props> = ({
167
167
  console.log('[DocScanner] area ratio', area / (width * height));
168
168
  }
169
169
 
170
- if (area < width * height * 0.005) {
170
+ // Lower threshold to detect smaller documents
171
+ if (area < width * height * 0.0001) {
171
172
  continue;
172
173
  }
173
174