react-native-document-scanner icon indicating copy to clipboard operation
react-native-document-scanner copied to clipboard

Android?

Open malakada opened this issue 7 years ago • 29 comments

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

malakada avatar Aug 02 '17 17:08 malakada

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 :).

Michaelvilleneuve avatar Aug 03 '17 07:08 Michaelvilleneuve

I'd also be very interested in an Android implementation 😄 !

axelkennedal avatar Oct 13 '17 19:10 axelkennedal

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. :)

ducpt2 avatar Oct 18 '17 04:10 ducpt2

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 !

Michaelvilleneuve avatar Oct 18 '17 14:10 Michaelvilleneuve

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.

ducpt2 avatar Oct 23 '17 07:10 ducpt2

I'm very interested, too!!

marcorm avatar Dec 28 '17 16:12 marcorm

I wish someone can implement Android version. Don't Wana go into license stuff like scanbot sdks....

themakerman avatar Jan 08 '18 20:01 themakerman

I would really like to see the android version aswell. good work on the ios !

julianklumpers avatar Apr 08 '18 14:04 julianklumpers

Any plan to add soon the Android support @Michaelvilleneuve ?

zedtux avatar Jun 29 '18 05:06 zedtux

@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?

zedtux avatar Jun 29 '18 09:06 zedtux

Yes you can revert them, especially If the linking adds any compilation issues

Michaelvilleneuve avatar Jun 29 '18 09:06 Michaelvilleneuve

It did. Thank you.

zedtux avatar Jun 29 '18 09:06 zedtux

Did any of you have found a working solution for Android?

Fercell avatar Jul 09 '18 10:07 Fercell

Nope, still looking for it.

zedtux avatar Jul 09 '18 10:07 zedtux

Here's a basic version for Android: https://github.com/Diastorm/rn-doc-scanner-android

veb avatar Jul 09 '18 19:07 veb

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 avatar Jul 09 '18 21:07 julianklumpers

@julianklumpers please use the other lib repo to discuss it

Michaelvilleneuve avatar Jul 10 '18 05:07 Michaelvilleneuve

Hello, Do you have the version for Android? Thanks alot

NguyenQuangVinh123 avatar Sep 13 '18 02:09 NguyenQuangVinh123

@julianklumpers Hello do you resolve this problem on android

NguyenQuangVinh123 avatar Sep 13 '18 04:09 NguyenQuangVinh123

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 avatar Oct 24 '18 13:10 andrejunqueira1

@andrejunqueira1 awesome, do not hesitate to open a PR whenever you think our works can be merged !

Michaelvilleneuve avatar Oct 24 '18 14:10 Michaelvilleneuve

@andrejunqueira1 that sound great ! Why don't you fork this project and add your Android version in this lib as @Michaelvilleneuve suggested?

zedtux avatar Oct 24 '18 14:10 zedtux

Thank you guys, i'll take a time to join our projects !

andrejunqueira1 avatar Oct 25 '18 20:10 andrejunqueira1

Estimados,

Alguna novedad respecto a esto? @andrejunqueira1 @Michaelvilleneuve Saludos

nicolasscard avatar Mar 15 '19 14:03 nicolasscard

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

Michaelvilleneuve avatar Apr 12 '19 09:04 Michaelvilleneuve

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?

leandromaciel avatar May 03 '19 20:05 leandromaciel

Hello, does anyone have good news about this ?

GaetanB999 avatar May 15 '19 14:05 GaetanB999

@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 :)

Michaelvilleneuve avatar May 23 '19 08:05 Michaelvilleneuve

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 .

nicolasscard avatar May 23 '19 12:05 nicolasscard