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

harvesting error #5

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

harvesting error #5

daimajia opened this issue Jan 1, 2014 · 1 comment

Comments

@daimajia
Copy link

daimajia commented Jan 1, 2014

[E 140101 23:45:19 websocket:306] Uncaught exception in /harvesting
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 94, in process
result = opencv.Image(label=label).persist(cv_image)
File "/root/School/Face/face-recognition-server-master/opencv.py", line 159, in persist
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

@daimajia
Copy link
Author

daimajia commented Jan 1, 2014

when try to saving the first image, trigger this error.

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

1 participant