Skip to main content

Python package to make stimuli like those used in classic visual search experiments.

Project description

Build Status License DOI PyPI version

searchstims

Python package to make stimuli like those used in classic visual search experiments
https://en.wikipedia.org/wiki/Visual_search
... but with the exact size to feed them to your favorite neural network.

feature_search spatial_config_search

There are links to example configuration files below.

For a recent review of factors influencing visual search, please see:
http://search.bwh.harvard.edu/new/pubs/FiveFactors_Wolfe-Horowitz_2017.pdf

For a dataset of human subjects performing a similar visual search task, please see: http://search.bwh.harvard.edu/new/data_set_files.html

Installation

pip install searchstims

If you want to download and install locally into an environment with Anaconda: /home/you/Documents $ conda create -n searchstims-env python=3.6 numpy pygame
/home/you/Documents $ source activate searchstims-env
(searchstims-env) /home/you/Documents $ git clone
(searchstim) /home/you/Documents $ cd searchstims
(searchstim) /home/you/Documents/searchstims $ pip install -e .

Usage

The searchstims package installs itself so that you can run it from the command line. You will use a config.ini file to specify the visual search stimuli you want the package to generate.

/home/you/Documents $ searchstims config.ini

Running the example script will create a folder ~/output with visual search stimuli. For more detail on the structure of config.ini files used with this package, see ./doc/config.md.

For examples of config.ini files, see ./doc/configs/. These examples were used in this project:
https://github.com/NickleDave/visual-search-nets

.json output file

In addition to saving visual search stimuli in the output folder, searchstims saves information about stimuli in a .json output file. This .json file is provided to make it easier to work with the visual search image files, and analyze results obtained with them. For more detail, see ./doc/json.md

License

BSD-3

Citation

If you use this library, please cite this repository using the DOI:
DOI

Acknowledgments

  • Research funded by the Lifelong Learning Machines program, DARPA/Microsystems Technology Office, DARPA cooperative agreement HR0011-18-2-0019

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

searchstims-2.4.0.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

searchstims-2.4.0-py3-none-any.whl (54.7 kB view details)

Uploaded Python 3

File details

Details for the file searchstims-2.4.0.tar.gz.

File metadata

  • Download URL: searchstims-2.4.0.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for searchstims-2.4.0.tar.gz
Algorithm Hash digest
SHA256 5379ea0d26ed4542ace4c40cf21713cd6cf263cc3c9151db32099330b1a140da
MD5 6ff4af2d089a132eab9e9c18c5b9d274
BLAKE2b-256 dbd37d58712df673c11a069a26e53db885a4c7be1f1bb4e9fe94b4d35b1607d0

See more details on using hashes here.

File details

Details for the file searchstims-2.4.0-py3-none-any.whl.

File metadata

  • Download URL: searchstims-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 54.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for searchstims-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf44560cf749b32157a2d28e5bdbe9d1edd0ef8c3d7f1fd7522758312e2c6cbc
MD5 864bf82447c10f31bf91fd07a9bc0c19
BLAKE2b-256 549d8cc3e0c9d1d80ea5ae7758bf59b77e08903e92ef91e4ccfb8b53c8d69338

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page