Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

where can i install moudle util.opencv_helpers #50

Open
muyilangjun1 opened this issue Aug 21, 2018 · 4 comments
Open

where can i install moudle util.opencv_helpers #50

muyilangjun1 opened this issue Aug 21, 2018 · 4 comments

Comments

@muyilangjun1
Copy link

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
Copy link
Author

muyilangjun1 commented Aug 28, 2018

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

@dgoldman-pdx
Copy link
Member

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

@muyilangjun1
Copy link
Author

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

@dgoldman-pdx
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants