brownhci / WebGazer

WebGazer.js: Scalable Webcam EyeTracking Using User Interactions
https://webgazer.cs.brown.edu
Other
3.54k stars 536 forks source link

Out of the box issue with dataset extractor #159

Closed alfredoandere closed 2 years ago

alfredoandere commented 4 years ago

I am following the instructions in the dataset extractor section. I am downloading the dataset from the link provided and placing it inside www/data/src Working with the following environment.

$pip freeze
|numpy==1.19.1
│opencv-python==4.4.0.42
│pytz==2020.1
│tornado==6.0.4

When I run python3 webgazerExtractServer.py the server starts up fine with the following message

[I 200822 01:20:30 webgazerExtractServer:395] Listening on [::]:8000
WebGazer ETRA2018 Dataset Extractor server started; please open http://localhost:8000/webgazerExtractClient.html

THEN when I open that link in chrome (or safari) it gives out the error: (and does not process anything)

[I 200822 01:21:03 web:2250] 200 GET /webgazerExtractClient.html (::1) 6.80ms
[I 200822 01:21:03 web:2250] 101 GET /websocket (::1) 0.75ms
[E 200822 01:21:03 web:1792] Uncaught exception GET /websocket (::1)
    HTTPServerRequest(protocol='http', host='localhost:8000', method='GET', uri='/websocket', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/Users/alfredoandere/Desktop/env/eye-env/lib/python3.7/site-packages/tornado/websocket.py", line 956, in _accept_connection
        open_result = handler.open(*handler.open_args, **handler.open_kwargs)
      File "webgazerExtractServer.py", line 176, in open
        newParticipant( self )
      File "/Users/alfredoandere/Desktop/WebGazer/www/data/src/participant.py", line 255, in newParticipant
        global_variables.participant.loadParticipantData()
      File "/Users/alfredoandere/Desktop/WebGazer/www/data/src/participant.py", line 137, in loadParticipantData
        f = os.path.split( webMFile[0] )[1]
    IndexError: list index out of range

Would really appreciate any help with this. Thank you in advance!

Skylion007 commented 4 years ago

It looks like you video files aren't in the right place. P0, P1, and all the other folders will need to be extracted out in the same folder.

Skylion007 commented 4 years ago

TODO: Improve error handling of this script @RobinReborn