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.
- package/dist/DocScanner.js +2 -1
- package/package.json +1 -1
- package/src/DocScanner.tsx +2 -1
package/dist/DocScanner.js
CHANGED
|
@@ -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
|
-
|
|
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
package/src/DocScanner.tsx
CHANGED
|
@@ -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
|
-
|
|
170
|
+
// Lower threshold to detect smaller documents
|
|
171
|
+
if (area < width * height * 0.0001) {
|
|
171
172
|
continue;
|
|
172
173
|
}
|
|
173
174
|
|