react-native-document-scanner
react-native-document-scanner copied to clipboard
Android?
Hi there, just wondering if you have any plans on implementing this on Android as well. If not, is the problem straight-forward? Is it something that someone else could tackle? I've found one other repo that claims to do Android document scanning, but it's a WIP still and we haven't been able to get it to run.
Thanks in advance,
M
Hi, I wouldn't be able to develop the solution from scratch myself, at least not in Java ! But if you find a repo of native Android code that does that, I would be glad to make the react native bridge :).
I'd also be very interested in an Android implementation 😄 !
Hey @Michaelvilleneuve , Can you take a look at this lib: https://github.com/beast/react-native-scan-doc https://github.com/daisygao/ScannerLite/ https://github.com/jhansireddy/AndroidScannerDemo https://github.com/leadrien/opencv_native_androidstudio https://github.com/vulovicv23/opencv-documentscanner-android I think it so perfect if your lib can work on Android too. :) So btw, thank you for your effort. :)
Hi, thank you for the infos ! I've seen these library already, I am not working on this project right now but I might be working on it again soon !
Hi @Michaelvilleneuve , I see this project. It work exactly like your, but not have auto capture feature. https://github.com/Aniruddha-Tapas/Document-Scanner I trying to bridge it but it too hard for me :) Please take a look, thanks @Michaelvilleneuve.
I'm very interested, too!!
I wish someone can implement Android version. Don't Wana go into license stuff like scanbot sdks....
I would really like to see the android version aswell. good work on the ios !
Any plan to add soon the Android support @Michaelvilleneuve ?
@Michaelvilleneuve does it mean that the updates Android files, when running react-native link react-native-document-scanner
should be reverted as it isn't implement for Android yet?
Yes you can revert them, especially If the linking adds any compilation issues
It did. Thank you.
Did any of you have found a working solution for Android?
Nope, still looking for it.
Here's a basic version for Android: https://github.com/Diastorm/rn-doc-scanner-android
hi @veb
Thank you for linking this basic library for Android. there is a bit of lack on documentation on how to use this in React Native. I figured out how to get this working.
Here is a basic example:
import React from 'react'
import { View, Button, Image } from 'react-native'
import { RNDocScanner } from 'rn-doc-scanner'
export default extends React.Component {
state = {
testImage: null,
}
_handleCamera = () => {
// argument false means auto document detection
// argument true means manual cropping
RNDocScanner.getDocumentCrop(false)
.then(res => {
console.log(res)
this.setState({ testImage: res })
})
.catch(err => {
console.log(err)
})
}
render() {
return (
<View style={{ flex: 1, backgroundColor: '#fff' }}>
<Button title="Start Camera" onPress={this._handleCamera} />
{this.state.testImage && (
<Image source={{ uri: this.state.testImage }} resizeMode="contain" style={{flex: 1, width: null, height: null}} />
)}
</View>
)
}
}
@julianklumpers please use the other lib repo to discuss it
Hello, Do you have the version for Android? Thanks alot
@julianklumpers Hello do you resolve this problem on android
Hi guys, i'm developing a module for android inspired in @Michaelvilleneuve module, is not ready yet, but already works, if you wanna try i think that can solve some problems. react-native-documentscanner-android thanks !
@andrejunqueira1 awesome, do not hesitate to open a PR whenever you think our works can be merged !
@andrejunqueira1 that sound great ! Why don't you fork this project and add your Android version in this lib as @Michaelvilleneuve suggested?
Thank you guys, i'll take a time to join our projects !
Estimados,
Alguna novedad respecto a esto? @andrejunqueira1 @Michaelvilleneuve Saludos
Hello, can anyone confirm that https://github.com/Michaelvilleneuve/react-native-document-scanner/pull/47 works on both android and ios ?
It is a PR based on @andrejunqueira1 's work
I'll merge it once it's working
Hello, can anyone confirm that #47 works on both android and ios ?
It is a PR based on @andrejunqueira1 's work
I'll merge it once it's working
How can I create a clean install with the #47 version for testing?
Hello, does anyone have good news about this ?
@GaetanB999 and everyone feel free to try out the android branch, it is working very well for us here at fidme. Android feels less polish and still lacks a few features but both are definitely useable.
Also please note that the twin library https://github.com/Michaelvilleneuve/react-native-perspective-image-cropper is now fully compatible with android :)
Estimados,
Ya no estoy necesitando la librerÃa. Gracias por el soporte y la información.
Saludos
El jue., 23 de may. de 2019 a la(s) 05:26, Michaël Villeneuve ( [email protected]) escribió:
@GaetanB999 https://github.com/GaetanB999 and everyone feel free to try out the android branch, it is working very well for us here at fidme. Android feels less polish and still lacks a few features but both are definitely useable.
Also please note that the twin library https://github.com/Michaelvilleneuve/react-native-perspective-image-cropper is now fully compatible with android :)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Michaelvilleneuve/react-native-document-scanner/issues/1?email_source=notifications&email_token=AIRGHAHXAFQ3PC6Y54NY7RLPWZIKBA5CNFSM4DVNSMS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWBOT2A#issuecomment-495118824, or mute the thread https://github.com/notifications/unsubscribe-auth/AIRGHAG4DHTF5HCGHHE5OW3PWZIKBANCNFSM4DVNSMSQ .