Mouse click specific part of image and record accuracy

Hello

I’m pretty new at this and am looking for advice regarding a visual search task. The basic idea is that people are presented with several images (one at a time), and I’d like them to be able to indicate (via mouse click) on the image where they think a target object is. Is there a way to specify the correct object (or location/area of image) and record whether the correct object was chosen? This information does not need to be provided to participants. I wondered if there was a way to indicate this in a ‘correct answer’ column in the conditions file, but otherwise am unsure what to do.

Thank you

See chapter 9 in the Builder textbook on implementing a visual search task:

https://www.amazon.com/Building-Experiments-PsychoPy-Jonathan-Peirce/dp/1473991390