Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Child Friendly Calibration - Eyelink

Hi,

I am using Open Sesame and Eyelink1000 (so PyGaze). I got the experiment to work with the default calibration, but what I need is a child calibration. What we use in Matlab (and PsychPy) experiments is a larger, colourful circle, that circles and makes fun noises, rather than the small point and beep that we can use for adults.
I tried just inserting the PsychPy script in an inline, but that's not enough, of course. Eyelink told me they were working on it, but that might take time - and I need to start testing soon.
Any idea of how to make changes to the default calibration?

Thanks in advance!
Naomi

Comments

  • Hi Naomi,

    Right now I don't have an EyeLink to test this with, so the code below is untested. But you can override the default function to draw a calibration target. To do so, you need to write an inline_script with something like the code below in the Prepare phase.

    Then you can modify the child_friendly_target() function in such a way that it draws a Spongebob or something along those lines. Does that make sense?

    def child_friendly_target(x, y):
    
        c = Canvas()
        c.fixdot(x, y)
        c.show()
    
    
    items['pygaze_init'].draw_calibration_canvas = child_friendly_target
    

    Cheers!
    Sebastiaan

    Buy Me A Coffee

  • Thank you Sebastiaan!

    I am sorry, I only saw this reply now...

    How do I modify the function to draw a .jpg or .gif? And can I control the calibration beep to be more child-friendly?

    Best,
    Naomi

  • Hi Naomi,

    Instead of a circle, draw an image.

    To change the calibration sound, try to add this code here to the loop Sebastiaan posted earlier.

    src = pool['bark.ogg'] # replace bark.ogg with the sound you wish and put that sound file in the file pool
    self.beep = Sampler(src, volume=.5)
    if self.var.calbeep == 'yes':
        self.beep.play()
    

    I haven't this code either, though....

    Good luck,
    Eduard

    Buy Me A Coffee

  • edited March 2018

    Hi Eduard,

    Sorry for only getting to test this now - I had a few deadlines on other projects, and am now back to working on this project.

    I have tried to implement this but I just get an empty calibration (no sound and no dot/image).
    What I tried to do is to put an inline before the pygaze_init that has, in the prepare phase:

    def child_friendly_target(x, y):
        path = exp.pool[u'calib_1.gif']
        c = Canvas()
        c.image(path)
    # Element interface
        c.show()
        src = exp.pool[u'Ripple_sound_effect_edited.wav'] 
        self.beep = Sampler(src, volume=.8)
        if self.var.calbeep == 'yes':
            self.beep.play()
    
    items['pygaze_init'].draw_calibration_canvas = child_friendly_target
    

    Thanks for all your help!
    Naomi

  • Hi Naomi,

    I am sorry I doubt have an eyetracker to test the script myself. Maybe it works if you move c.show() to the end of the function?
    If not, I have to pass :(

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games