card-io / card.io-iOS-source

The open-source code for the card.io-iOS-SDK: provides fast, easy credit card scanning in mobile apps
Other
689 stars 371 forks source link

Generating model file for a different number pattern #50

Open Raulie opened 8 years ago

Raulie commented 8 years ago

I need to scan an ATM card that has a different pattern.

I've made some quick changes to the source code, and replaced the Visa pattern found in n_vseg.cpp. Luckily, it's perfectly scanning the ATM: atm_card

The thing is that I also need to scan Visa cards. After trying to understand the code, I think that I need to modify modelm_befe75da.cpp in order to include the new pattern. I would like to replace the Amex pattern with the ATM one, but I have no idea of how to modify/generate this file.

Is there a guide that explains how to generate this model file?

dgoldman-pdx commented 8 years ago

Wow, good work! I'm actually surprised you could get as far as you already have.

Unfortunately, changing the deep-learning models is both difficult and undocumented. We have an entire toolkit of Python and other scripts that are needed for doing so, but no one has had the time to organize and document these.

This is more @josharian's area of expertise than mine. Perhaps he can offer some advice.

Robert-Saiter commented 8 years ago

Raulie did you manage to get this done? I am in need of something similar to what you posted.

Raulie commented 8 years ago

@S8ER01Z no, I couldn't. I don't even know if it's possible, since apparently in addition from Theano, they use an in-house Python library in order to build the models.