【问题标题】:Use 'Face' filter for Image type when using Google Image Search API in Python在 Python 中使用 Google Image Search API 时对图像类型使用“人脸”过滤器
【发布时间】:2013-09-06 17:55:07
【问题描述】:

我正在尝试使用以下 Python 代码从 Google 抓取图像:

BASE_URL = 'https://ajax.googleapis.com/ajax/services/search/images?v=1.0&rsz=large&q=%s&start=%d'

BASE_URL = BASE_URL %(name, count)
request = urllib2.Request(BASE_URL)
response = urllib2.urlopen(request)

然后我使用 simplejson 以 JSON 格式加载响应。 有什么方法可以将 Search by Image 类型用作“人脸”,以便使用 Python 仅检索人脸?

【问题讨论】:

    标签: python google-api google-api-python-client


    【解决方案1】:

    【讨论】:

    猜你喜欢
    • 2019-05-22
    • 2021-11-10
    • 2020-09-27
    • 1970-01-01
    • 2018-07-08
    • 1970-01-01
    • 1970-01-01
    • 2016-10-27
    • 2015-11-11
    相关资源
    最近更新 更多