GazeClassify
PiPy package to algorithmically annotate eye-tracking data. Recommended python version: 3.9
What is GazeClassify?
GazeClassify provides automatized and standardized eye-tracking annotation. Anyone can analyze gaze data online with less than 10 lines of code.
Exported
csv will contain distance from gaze (red circle) to human joints (left image) and human shapes (right image) for each frame.
| frame number | classifier name | gaze_distance [pixel] | person_id | joint name |
|---|---|---|---|---|
| 0 | Human_Joints | 79 | 0 | Neck |
| ... | ... | ... | ... | ... |
| 0 | Human_Shape | 0 | None | None |
| ... | ... | ... | ... | ... |
Run on example data
from gazeclassify import Analysis, PupilLoader, SemanticSegmentation, InstanceSegmentation
from gazeclassify import example_trial
analysis = Analysis()
PupilLoader(analysis).from_recordings_folder(example_trial())
SemanticSegmentation(analysis).classify("Human_Shape")
InstanceSegmentation(analysis).classify("Human_Joints")
analysis.save_to_csv()
Run on your own data
Capture eye tracking data from a Pupil eye tracker. Then, export the data using Pupil software. You will get a folder with the exported world video and the gaze timestamps. Finally, let gazeclassify analyze the exported data:
from gazeclassify import Analysis, PupilLoader, SemanticSegmentation, InstanceSegmentation
analysis = Analysis()
PupilLoader(analysis).from_recordings_folder("path/to/your/folder_with_exported_data/")
SemanticSegmentation(analysis).classify("Human_Shape")
InstanceSegmentation(analysis).classify("Human_Joints")
analysis.save_to_csv()
Citation
Please cite this paper in your publications if GazeClassify helps your research.
@inproceedings{10.1145/3450341.3458886,
author = {M\"{u}ller, Daniel and Mann, David},
title = {Algorithmic Gaze Classification for Mobile Eye-Tracking},
year = {2021},
booktitle = {ACM Symposium on Eye Tracking Research and Applications}
}
Release files for gazeclassify 0.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gazeclassify-0.9.2.tar.gz | 263.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gazeclassify-0.9.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 538.9 kB
Release files / gazeclassify-0.9.2.tar.gz
| Download URL | gazeclassify-0.9.2.tar.gz |
|---|---|
| Size | 263.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0de2c61a9181062f7fb39adfce5254e682f5db56f8bf740e9257ea373c831432
|
|
BLAKE2b-256 checksum How to use checksums |
4c809341766265c38e0a078dd6afc870c984d6b5f8e39501aa21e4a7e841999e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / gazeclassify-0.9.2-py3-none-any.whl
| Download URL | gazeclassify-0.9.2-py3-none-any.whl |
|---|---|
| Size | 275.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
532c06433d5ba81700e3193a54253400927b3e4e1a870f198704a63f9f099ef5
|
|
BLAKE2b-256 checksum How to use checksums |
7bcb16933d1b86390693eeb5fb8c1c53cfbcc913bc6d2d29db60e0ec7c672fe0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|