ragulin / face-recognition-server

An face recognition experiment with WebRTC, Websockets, OpenCV and Python.
215 stars 91 forks source link

Socket Connection Closed #7

Closed all3nT closed 10 years ago

all3nT commented 10 years ago

I am not sure if this is an issue with my install or not but my server is unable to access ws://localhost:8888/predict. It looks like there is no socket server listening. Do you know what I may have missed or how to fix this? From what I have read it looks like Tornado is handling the sockets.

From Google Chrome's error console

WebSocket connection to 'ws://localhost:8888/predict' failed: Connection closed before receiving a handshake response 

I am also seeing this in the console

WebSocket is already in CLOSING or CLOSED state. 
all3nT commented 10 years ago

I resolved the issue be re installing tornado.

goyal71 commented 10 years ago

i am having this similar issue... i am using ubuntu 14.04 .. tried reinstalling it but still there is error

all3nT commented 10 years ago

Try reinstalling the opencv python bindings. I think the error it is getting in the predict handler might be from opencv. You can also try uninstalling and reinstalling tornado.

goyal71 commented 10 years ago

i already tried that ... i saw the server log i am getting error " gray = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY) TypeError: src data type = 17 is not supported " any idea?

all3nT commented 10 years ago

That seems like there is an issue with the image type that is being sent. I am not sure how to fix this but this might help, http://stackoverflow.com/questions/11642178/data-type-errors-for-input-images-of-cv2-calcopticalflowpyrlk. I think I remember getting an error like this at some point but I believe I just re installed the packaged to fix the problem.