Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imtools.py gives error #29

Open
w1malik opened this issue Nov 11, 2016 · 3 comments
Open

imtools.py gives error #29

w1malik opened this issue Nov 11, 2016 · 3 comments

Comments

@w1malik
Copy link

w1malik commented Nov 11, 2016

By typing the below mentioned commands on command prompt by going into the folder of pca images e.g., C:\Users\Dell\Desktop\pcv_data\data> and typing the python on that prompt:
from PIL import Image
from numpy import *
im = array(Image.open(’AquaTermi_lowcontrast.jpg’).convert(’L’))
im2,cdf = imtools.histeq(im)

I see the following errors:

Traceback (most recent call last):
File "", line 1, in
NameError: name 'imtools' is not defined

I put the imtools.py file into the same folder in which I am calling 'AquaTermi_lowcontrast.jpg'.
Is there a way to deal with such error. I am following the book tutorial given in the "Programming Computer Vision with Python by Jan Erik Solem". The same problem with your tutorial has been posed on stackoverflow and mail.python.org but I tried to call it first using
from imtools import *
import runs successfully but when i parse ''imtools.histeq(im)'' it gives me the error which is already mentioned above. And I also want to know what is best way to put these module code into which folder from where we can easily call them when needed without giving any path again and again.
Thanks.

@LidongMo
Copy link

did you solve this problem? I meet this error as well.

@chutsu
Copy link

chutsu commented May 9, 2017

@bassem55
Copy link

add histeq function to imtools file

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

No branches or pull requests

4 participants