Comments (3)
Hi,
I am looking into using the Card.io SDK to implement this feature. Do you have any suggestions on how the camera should be called to recognize the content on the cards?
from creditcardview.
@vinaygaba I don't think it's possible to do this at least with the Card.IO SDK. The CreditCardView is an extended object of a View. You could grab the context that the view is in, but it is only guaranteed to be an activity from the Android framework.
If you take a look at the sample app for the Card.IO SDK, you will see that the activity that uses Card.IO needs to have "onActivityResult" overridden to get the results of the image recognition.
I'm pretty sure that you can not override a method on an object that was already created. You would need to write an activity class that has the appropriate method overridden..
from creditcardview.
This could be an opt-in feature (and one with little effort on your part) whose entry point is to just call some method on your view that takes the activity result as a parameters and knows how to dissect it. A consuming developer would have to know to call:
creditCardView.updateFromCardIOResult(data);
where 'data' is the Intent
object from onActivityResult(...)
. Definitely could not have the view listen for the result or any kind of notification given the volatile nature of any activities in the backstack -- the view may not exist anymore if the OS has killed it.
from creditcardview.
Related Issues (20)
- expiration defaults to standard keyboard HOT 1
- Can't use with RecyclerView HOT 6
- Cvv max length dinamyc by CardType HOT 1
- Card type auto detection not working on "All but last four" number format
- 1.0.3 declared but getting code inconsistent with (older than) release commit HOT 2
- Font problem HOT 3
- Does Not display programmatically HOT 4
- I want to put CVV HOT 1
- Issues with CreditCardView HOT 5
- passing value into card programmatically HOT 10
- Change card programmatically not work in DialogFragment HOT 1
- [BUG] crashes when type is set to 'none' HOT 5
- Use card View instead of RelativeLayout
- Keep aspect ratio HOT 1
- Can't set plain background on Android 4.2 HOT 1
- How to save values
- Add set and get Cvv function HOT 4
- you have a problem with crediCardView.getCardNumber();
- BMO credit card
- Nesecito
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from creditcardview.