card.io-dmz icon indicating copy to clipboard operation
card.io-dmz copied to clipboard

where can i install moudle util.opencv_helpers

Open muyilangjun1 opened this issue 6 years ago • 4 comments

raceback (most recent call last): File "user_pyximpot.py", line 4, in from dmz import * File "/usr/local/lib/python3.6/site-packages/pyximport/pyximport.py", line 458, in load_module language_level=self.language_level) File "/usr/local/lib/python3.6/site-packages/pyximport/pyximport.py", line 231, in load_module raise exc.with_traceback(tb) File "/usr/local/lib/python3.6/site-packages/pyximport/pyximport.py", line 216, in load_module mod = imp.load_dynamic(name, so_path) File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/imp.py", line 343, in load_dynamic return _load(spec) File "dmz.pyx", line 9, in init dmz import util.opencv_helpers ImportError: Building module dmz failed: ["ModuleNotFoundError: No module named 'util'\n"]

muyilangjun1 avatar Aug 21 '18 08:08 muyilangjun1

Any news o on this, @dgoldman-ebay @josharian ?

muyilangjun1 avatar Aug 28 '18 01:08 muyilangjun1

@muyilangjun1 what are you trying to accomplish?

The files to which you are referring were intended for use with Cython, to make this DMZ code available to the various Python scripts we had used for developing the deep-learning models used by card.io.

As noted elsewhere, @josharian and I failed to accomplish our intended goal of cleaning up and posting those scripts, along with sufficient documentation to make them useable by other developers, prior to our stepping away from the card.io project.

The util directory, which contained many Python scripts in addition to opencv_helpers.py, was part of that never-posted code.

dgoldman-pdx avatar Aug 28 '18 05:08 dgoldman-pdx

@dgoldman-ebay

I want to do the same thing in the server side lilke card.io.Recetly i read your code, it was very cool especially cython module,I found i just need to build cython module to achieve my goals, unfortunately same error when I build dmz.pyx. It's ok if you not very convenient, I can rewrite several function dmz.pyx needed. thank you very much. I learn many when look your code.

muyilangjun1 avatar Aug 29 '18 07:08 muyilangjun1

Ah, I understand.

It might be possible for me to find a copy of utils.opencv_helpers to share with you, but probably that would lead to further dependencies on other files, etc., etc. So if you can figure out your own code solutions, that might be simplest in the long run.

In any case, if you're planning on sending images of credit cards to a server, you might have a more fundamental issue. Both the transmission of such images over the Internet, and the storage of those images on a server, might be seen as problematic by both users and credit card companies.

Something for you to think about...

dgoldman-pdx avatar Aug 29 '18 11:08 dgoldman-pdx