[open] PygazeAnalyser: Drawing Heatmaps, Scanpaths etc
I am currently trying to draw some graphical analyses.
It did not work with 32 bit images but reducing to 24 bit helped when trying to draw heatmaps.
Nevertheless the heatmap was not drawn onto the image but saved in a file with black background.
Same accounts for scanpath and fixations. Images with black backgrounds were produced but also something that looked like a memory allocation error:
alloc: invalid block: 03F6AE90: 90 4
Btw I do also get a warning because the font family 'Ubuntu' is not recognized by windoze :-)
Here's how I try to use the stuff:
readFile = easygui.fileopenbox(msg="Bitte wählen Sie die zu öffnende Datei", filetypes=["*.tsv"])<br>theData = er.read_eyetribe(readFile, "start_trial", "stop_trial", debug=True). ... fixations = theData['events']['Efix'] # [starttime, endtime, duration, endx, endy] saccades = theData['events']['Esac'] display = [1036, 812] imageFile = "somePath" gp.draw_heatmap(fixations, dispsize=display, imagefile=imageFile, durationweight=True, alpha=0.5, savefilename="saveFilePath") gp.draw_scanpath(fixations, saccades, dispsize=display, imagefile=imageFile, alpha = 0.5, savefilename = "saveFilePath2") gp.draw_fixations(fixations, dispsize=display, imagefile=imageFile, durationsize=True, durationcolour=False, alpha=0.5,savefilename="saveFilePath3")
I'd appreciate any hint :-)
Here come the images