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

how to convert ASC to MAF #1

Open
perevo opened this issue Aug 28, 2020 · 1 comment
Open

how to convert ASC to MAF #1

perevo opened this issue Aug 28, 2020 · 1 comment

Comments

@perevo
Copy link

perevo commented Aug 28, 2020

Hi,
How to convert ASC to MAF using convertFromASC.py? Is there any guide?

best,
Jianrong Jia

@MunzT
Copy link
Owner

MunzT commented Sep 1, 2020

Hi Jianrong,

you have to pass either a directory containing asc files or the files you want to convert as command line arguments to the script.

Examples:
convertFromASC.py pathToDirWithMafFiles
convertFromASC.py file.asc
convertFromASC.py firstAscFile.asc secondAscFile.asc thirdAscFile.asc

This script was specifically created for the asc files that are available in the directory "eyeTrackingData".

You may have to do some changes if you want to use it with your own data; the file "VisME/resources/readmeFiles/inputFormats.txt" contains more information on how a maf file has to look like.

You should especially check the following:

  • adapt the value for pixelsPerDegree; this value depends on your experiment settings (the value can be calculated from the distance to the monitor, the monitor size and resolution).
  • since an asc file may contain multiple trials, I use some messages with key words to separate them (e.g., "MSG 3251683 -9 showbild misa01.bmp") and to extract the file path for the background image.
    In the script, line 201 detects the keyword for the background image and the start of a new trial, line 210 the end of a trial, line 206 is a filter to use only some trials containing specific key words.
  • I use further information from messages with these key words: TRIAL_ID, GAZE_COORDS, SAMPLES, RATE; please check that these are available or replace them appropriately.

If you have further questions, please let me know.

Cheers,
Tanja

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