Open AllanLotta opened 4 years ago
/android/src/main/java/com/documentscanner/ImageProcessor.java
Thanks @wwasuu , It's works!
Same problem but I didn´t understand how to solve it. Help
@Eric-Andrade You need change the code of the lib for solve it. Go to node_modules/@woonivers/react-native-document-scanner/android/src/main/java/com/documentscanner/ImageProcessor.java
and comment the line Imgproc.cvtColor(src, src, Imgproc.COLOR_RGBA2GRAY);
like this:
@Woonivers ... Please remove this or at least add a parameter for switching it off and on. thank you.
In Iphone i can get a color picture but in Android the lib just return a black & white.
Can someone help me?
"react-native": "0.59.9", "@woonivers/react-native-document-scanner": "1.6.2"