Question

I need some face image data for training. I want to collect them from the Internet. I have tried Google Image Search API. But it seems not work now (officially deprecated).

Is there any other method for crawling image from google. From other search engine is also OK.

Was it helpful?

Solution

You can use Google Custom Search JSON API for this.

  1. Go to google.com/cse
  2. Create an engine with any url
  3. In the sidebar go to Edit search engine > Setup
  4. Delete your url, enable image search, enable "Search entire web..."

Now if you search for "face", in the image tab you get pics of faces from the internet. To learn how to use this programmatically from JSON API, check Developer's guide:

https://developers.google.com/custom-search/json-api/v1/overview

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top