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

predict error #4

Open
daimajia opened this issue Jan 1, 2014 · 1 comment
Open

predict error #4

daimajia opened this issue Jan 1, 2014 · 1 comment

Comments

@daimajia
Copy link

daimajia commented Jan 1, 2014

[E 140101 23:41:21 websocket:306] Uncaught exception in /predict
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/websocket.py", line 303, in wrapper
return callback(_args, *_kwargs)
File "server.py", line 55, in on_message
self.process(image)
File "server.py", line 104, in process
result = opencv.predict(cv_image)
File "/root/School/Face/face-recognition-server-master/opencv.py", line 100, in predict
cropped = to_grayscale(crop_faces(cv_image, faces))
File "/root/School/Face/face-recognition-server-master/opencv.py", line 41, in crop_faces
return img[y:y+h,x:x+w]
File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 512, in getattr
raise AttributeError(name)
AttributeError: getitem

@crosofg
Copy link

crosofg commented Mar 17, 2017

How to do prediction?

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