![]() X = visual.TextStim(win, text='x', color='black')įindWaldo = np.array() #Waldo locations list WaldoImage.image = os.path.join(image_dir, '_wallpaper (2).jpg') #original size = 1920 x 1233 px WaldoImage = visual.ImageStim(win, size=2, interpolate=True) #interpolate > helping with blurry image? Win = visual.Window(units='norm', size=, fullscr=None) Image_dir = os.path.join(main_dir, 'images') Question: Do you know how to get it to track location at the ‘click-point’ instead of its first identified position within the window? #figuring out how to define a mouse click location in an image objectĭata_dir = os.path.join(main_dir,'experimentData') However, it is tracking location based on where the mouse's initial position is within the window instead of where I click. ![]() Here: ‘click-point’ = coordinates within the image related to the participant's guessĬurrently, I have my test script collecting a mouse location. Once I have these coordinates, I intend to write some For loops with an If Boolean statement code for the mouse clicks:Ĭlick = found (Waldo's coordinates in the image) = True = next trialĬlick = miss (not Waldo's coordinates) = False = try again Here: ‘click-point’ = Waldo's location in the image.I will use image-coordinate pairings to define True response within experimental conditions. I have a test script that I am using to identify the (x,y) coordinates of 'click-points' so I can define the coordinates of Waldo’s hiding spot within each image. DV Measures: time to find Waldo, click accuracy (True v.Image size by group: G1: full-size G2: 2/3 size G3: 1/3 size.cropped = smaller image size = smaller search area) Between-subjects, IDV: manipulates the size of the image to reduce visual noise (i.e. I am very new to coding, so excuse any jargon mistakes.ĭesign: Where's Waldo search experiment. I am working on an experimental design and code for a psychopy/python course.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |