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

Two undefined names: 'process_image' and 'imgCrop' #2

Closed
cclauss opened this issue Feb 26, 2018 · 4 comments
Closed

Two undefined names: 'process_image' and 'imgCrop' #2

cclauss opened this issue Feb 26, 2018 · 4 comments

Comments

@cclauss
Copy link
Contributor

cclauss commented Feb 26, 2018

flake8 testing of https://github.com/EvilPort2/Sign-Language

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./recognize_gesture.py:32:20: F821 undefined name 'process_image'
	processed_array = process_image(image)
                          ^
./set_hand_hist.py:32:27: F821 undefined name 'imgCrop'
			hsvCrop = cv2.cvtColor(imgCrop, cv2.COLOR_BGR2HSV)
                                               ^
2     F821 undefined name 'process_image'

Is the imgCrop issue related to #1 ?

@EvilPort2
Copy link
Owner

EvilPort2 commented Feb 26, 2018

Yes. It is related.
Read the docs of the VideoCapture method of OpenCV. You will be able to solve the error.

[EDIT] Not related

@EvilPort2
Copy link
Owner

EvilPort2 commented Mar 11, 2018

The bug has been fixed.

[EDIT] Not fixed

@cclauss
Copy link
Contributor Author

cclauss commented Mar 12, 2018

I am still seeing this: flake8 testing of https://github.com/EvilPort2/Sign-Language on Python 3.6.3

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./recognize_gesture.py:32:20: F821 undefined name 'process_image'
	processed_array = process_image(image)
                          ^
./set_hand_hist.py:34:27: F821 undefined name 'imgCrop'
			hsvCrop = cv2.cvtColor(imgCrop, cv2.COLOR_BGR2HSV)
                                               ^
2     F821 undefined name 'process_image'

@EvilPort2
Copy link
Owner

sorry for what i said earlier. now this should be fixed

@cclauss cclauss closed this as completed Mar 12, 2018
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

2 participants