Skip to main content

ImagineS (Image Engine Search) tool augments an image dataset by searching a series of queries in Google Images.

Project description

ImagineS

ImagineS (Image Engine Search) tool augments an image dataset by searching a series of queries in Google Images.

Install


  • We recommend first creating an environment by using either Virtual Envs or Conda.

  • Then install the library using pip:

    pip install imagines

Usage


Example: Download apple and water related images by adding the query searches that would belong to each class.

from imagines import DatasetAugmentation
dataset_augmentation = DatasetAugmentation(
    driver_type='chrome'
)
label_queries = {
    'apple': ['apple'],
    'water': ['water', 'water bottle'],
}
max_links_to_fetch = 3
sleep_between_interactions = 1
image_shape = (224, 224)
resize_images = True
output_dir = 'images/'

dataset_augmentation.augment_dataset(
    label_queries,
    output_dir,
    max_links_to_fetch,
    image_shape,
    resize_images,
    sleep_between_interactions
)

License


MIT License

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

imagines-0.0.7.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

imagines-0.0.7.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file imagines-0.0.7.2.tar.gz.

File metadata

  • Download URL: imagines-0.0.7.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for imagines-0.0.7.2.tar.gz
Algorithm Hash digest
SHA256 10e2706dd546d332daaf9bbf38d297b03e6526a3ba21a076b04315354174c420
MD5 2ddea34db5b0bb9e70ebaa6e5c021aad
BLAKE2b-256 11726aeac0d125e6d443829bd7a265d63718e1bf1496fb593e9809d3333bfb40

See more details on using hashes here.

File details

Details for the file imagines-0.0.7.2-py3-none-any.whl.

File metadata

  • Download URL: imagines-0.0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for imagines-0.0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c3464f4f82a19f34085a5d5ae8f8f7b0e26a3d0ccc7f625a4179b816af98c9dd
MD5 bb229b2b88cbb1589a64660307d54e0f
BLAKE2b-256 4678493bc91140319e3eedc894e43ff5903797b32fdb9e6c9f7809c0f90e7342

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