Howdy, Stranger!

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

Supported by

asking for Help with managing canvas and exporting data to excel file

Hi Everybody!
I have trouble producing a canvas on which a video is shown, and at the same time showing changing numbers (changing following the user's responses 1-5) while exporting the data to the Excel table (row for keypress and row for the thme of each keypress). I would be grateful to get some help. if someone can explain to me how I should implement the idea in the script.
I tried to use the step by step tutorial, but couldn't find out the solution and the deadline is not in my favor.

Thanks
Yuval Levy.
huckkuh.yl@gmail.com

Comments

  • edited March 2018

    Hi Yuval,

    I'm not an expert on video playback, but what you have in mind sounds quite tricky. The problem is that both video and numbers are drawn on the same canvas. Therefore, when you update your canvas to update the number, you would also restart the video, which is of course not what you want. Again, I never really worked with video playback, but maybe it is possible to retrieve the current frame of the video, right before refreshing the canvas, and restart the video from that frame on. Does that make sense? How do you present your video currently?

    while exporting the data to the Excel table (row for keypress and row for the thme of each keypress)

    That is not so difficult. While playing the video you can collect keyboard response and write them to the logfile with something like this:

    kb = Keyboard()
    
    while True:
        var.k,var.t = kb.get_key(timeout = 2)
        if k != None:
            log.write_vars()
    

    This code has to be in an inline_script

    Eduard

    Buy Me A Coffee

  • Hi Eduard!
    Thank you so much for your response.
    I must say that your idea is very creative. It does pose me a new challenge - retrieving frames, but i'll try!
    Thank you for the Excel reference too.

    I will update if your idea worked!

    Yuval

  • edited April 2018

    Hi Guys,
    I saw this thread float by, and because I am working on something very similar, I thought I'd butt in.
    I'm displaying a video using the Media_player_mpy, and I need other visual stimuli to change on screen, similar to what you're going for, Yuval.
    I create a canvas in the custom code window, on which I draw the stimuli that I want, then I call custom python code after every frame, and specify the frame on which I want the change to occur. Retrieving frames is pretty easy this way, using the frame variable, which (as the name implies) contains the current frame.
    one downside of this is that there is a black screen flicker every time the canvas is updated (i.e. every time I use the canvas.show() command to show a canvas with a different constellation of stimuli.

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