card-io / card.io-Android-SDK

card.io provides fast, easy credit card scanning in mobile apps
Other
1.99k stars 535 forks source link

Card.io mismatching with preused OpenCV 3.0 version #196

Open Himanshu7441 opened 7 years ago

Himanshu7441 commented 7 years ago

Hi,

I want to use Card.io in my android application. I already have used "libopencv_core.so" and "libopencv_imgproc.so" files (Using OpenCV 3.x version) in my project as they were required for my application Logic. Now the Card.io is usign the same files with OpenCV 2.x version. Thus my project now contains duplicate files and not compiling.

I have also tried to exclude these libraries from card.io but this time camera screen is not working. Its showing only manual entries.

Please help me here.

lkorth commented 7 years ago

card.io uses and requires OpenCV 2.4.13 at this time. To be compatible with applications using OpenCV 3, it would need to be upgraded to use OpenCV 3.

Himanshu7441 commented 7 years ago

@lkorth Thanks for the update. Can you please help me with updating Card.io to the latest version?

lkorth commented 7 years ago

The source code for card.io is at https://github.com/card-io/card.io-Android-source and https://github.com/card-io/card.io-dmz . In order to upgrade to OpenCV 3.x both repos would need to be updated. If this is something you're interested in working on, please feel free to submit a pull request.

Himanshu7441 commented 7 years ago

@lkorth Thanks. This is exactly what I am interested in. Actually I have tried the same once. Let me tell you the steps that I had performed:-

  1. Check out the source code from https://github.com/card-io/card.io-Android-source.
  2. Go to OpenCV/build_opencv.sh
  3. update the opencv version.
  4. Try to rebuild the card.io using ./gradlew clean assembleDebug.

But this didn't work. I didn't do anything in https://github.com/card-io/card.io-dmz .

I know I am doing it wrong way. It'll be really helpful if you could let me know the exact steps to do the same.

Himanshu7441 commented 7 years ago

I have updated the openCv version to 3.x by updating build_opencv.sh. This was mentioned in the docs.

Now project is throwing errors in dmz files of https://github.com/card-io/card.io-dmz.

But I am confused how to update card.io-dmz as not much documentation is provided for the same. Please help.

Himanshu7441 commented 7 years ago

Any update on this?