Howdy, Stranger!

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

Supported by

SMI-is it possible o tell apart if the tracker lost the eyes (blinking etc) from looking off screen?


I am tracking saccades to the left or right as responses in my data, and I have found that blinking will trigger an erroneous saccade (the tracker will think an eyetracker.sample violated either the left or right boundary).

I am hoping for a way to identify these responses in real-time in my experiment. I currently have a method that kind of works, but not completely. I have noticed that when the tracker loses contact with the eyes eyetracker.sample will return 0,0. Currently I am trying to identify blink responses in my data by checking for 10ms after each response whether eyetracker.sample ever returns 0,0, and if so then checking whether it continues to return 0,0 for at least 100ms (in which case I conclude they blinked and it erroneously triggered a resopnse). This does identify blinks, but there's a problem.

The problem with the above is that 0,0 is not only returned when the tracker loses the eyes. It is also returned if participants look off screen. As my task requires participants to look left or right, sometimes afterwards they will be too far off screen which also triggers 0,0 from eyetracker sample and thus I will erroneously identify a blink.

Wondering is there any hope in telling apart blinks from looking off screen with pygaze? It seems Iview does know the difference, it says gazepos 0,0 when I'm looking off screen but still shows that my eyes are tracked whereas they disappear when I close them. If I could check whether the tracker totally lost the eyes for 100ms, rather than check if the sample was 0,0, I think I'd be sorted.

Thank you.


  • edited August 2017

    Hi guys I found a solution that worked for me! I looked at pupil dilation rather than gazepos. When it is 0, they blinked. I have messed around with it a bit and it seems very good at tracking blinks.

    The eyetracker.pupil_size didn't work for me and I wasn't able to define a new method to get pupil diamter for the eyetracker instance with inline scripting for some reason, so I modified the eyetracker.sample function to pick it up (in

    def sample(self): """Returns newest available gaze position arguments None returns sample -- an (x,y) tuple or a (-1,-1) on an error """ res = iViewXAPI.iV_GetSample(byref(sampleData)) if self.eye_used == self.right_eye: newsample = sampleData.rightEye.gazeX, sampleData.rightEye.gazeY, sampleData.rightEye.diam else: newsample = sampleData.leftEye.gazeX, sampleData.leftEye.gazeY, sampleData.leftEye.diam if res == 1: self.prevsample = newsample[:] return newsample elif res == 2: return self.prevsample else: err = errorstring(res) print("WARNING libsmi.SMItracker.sample: failed to obtain sample; %s" % err) return (-1,-1)

    The inline script goes like so right after my trial procedure:

    exp.set('bad', False)
    while True:
        pupil = eyetracker.sample()[2]
        if elapsed >.03:
        if pupil==0:
    if pupil==0:
        badt0 = time.time()
        while True:
            localpos = eyetracker.sample()      
            if time.time()-badt0 >= 0.1:
                exp.set('bad', True)
            if not(pupil==0):
  • Awesome! Thanks for sharing!


    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 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