Git Product home page Git Product logo

bing-dataset-generator's Introduction

bing-dataset-generator

It's a package to download images from bing.com

Install

pip intall -r requirements.txt

Bing API

Before use this package, create a bing api key here, it's easy, just choose the free plan --> login with some [Microsoft, Facebook, Linkedin, Github] account --> get your key2

Basic usage

python3 request.py --query "<YOUR_QUERY>" --output <YOUR_OUTPUT_IMAGE_PATH> --key <YOUR_BING_API_KEY2>

Full usage

python3 request.py --query "<YOUR_QUERY>" --output <YOUR_OUTPUT_IMAGE_PATH> --key <YOUR_BING_API_KEY2> --max_results <Number> --group_size <Number>"

Example

python3 request.py -query "faces" --output dataset/faces --key f182e89c48a894f453a32a171c43cb8702 --max_results 250 --group_size 50

Parameters

To know more about parameters use python3 request.py -h:

usage: request.py [-h] -q QUERY -o OUTPUT -k KEY [-m MAX_RESULTS]
                  [-g GROUP_SIZE]

optional arguments:
  -h, --help            show this help message and exit
  -q QUERY, --query QUERY
                        search query to search Bing ImageAPI for
  -o OUTPUT, --output OUTPUT
                        path to output directory of images
  -k KEY, --key KEY     bing api key
  -m MAX_RESULTS, --max_results MAX_RESULTS
                        maximum images to download | default=250
  -g GROUP_SIZE, --group_size GROUP_SIZE
                        results per request | default=50

bing-dataset-generator's People

Contributors

italojs avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.