tiny-data 0.1.0

A cli tool for building computer vision datasets.
Documentation

tiny-data

A rust-based cli tool for building computer vision datasets.

(demo.gif)

You can get a list of the available options by running the command below:

>> tiny-data -h
Usage: tiny-data [OPTIONS]

Options:
  -t, --topics <TOPICS>...   Space-delimited list of image classes
  -n, --nsamples <NSAMPLES>  number of images to download per-class [default: 20]
  -d, --dir <DIR>            name of directory to save to [default: images]
  -h, --help                 Print help

Example:

>> cargo run --bin tiny-data -- -t pistachio fruit_basket brand_new_iphone --nsamples 30 -d demo
>> tree demo -L 1
demo
├── brand_new_iphone
├── fruit_basket
└── pistachio

Installation

To get started with tiny-data you need to enable the Custom Search API from Google and export the variables SEARCH_ENGINE_ID and CUSTOM_SEARCH_API_KEY to your environment.

Note: google limits the number of requests to 100/day which inherently puts a cap on the number of images you can download.

The package itself can be downloaded from crates.io by running

cargo install tiny-data