Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JeromeHoen/21e00cd1cfb3a84bb51c73a800703044 to your computer and use it in GitHub Desktop.
Save JeromeHoen/21e00cd1cfb3a84bb51c73a800703044 to your computer and use it in GitHub Desktop.
Google Cloud Vision API OpenAPI
Swagger: "2.0"
info:
title: Google Cloud Vision API
description: Derive insight from images with our powerful Cloud Vision API.
version: v1
host: vision.googleapis.com
basePath: /v1
schemes:
- https
produces:
- application/json
consumes:
- application/json
paths:
/images:annotate:
post:
summary: Derive Insight
description: Derive insight from images with our powerful Cloud Vision API.
parameters:
- in: body
type: object
required: true
schema:
$ref: "#/definitions/ImageRequest"
responses:
200:
description: Successful Response
type: object
schema:
$ref: "#/definitions/ImageResponse"
tags:
- Machine Learning
- Facial Recognition
- Object Recongition
- Optical Character Recognition
- Sentiment Analysis
- Similar Content
- Landmark Detection
- Language Identification
- Image Moderation
x-hype-tags:
- Vision
- Understand
- Powerful
- Categorization
- Object Recongition
- Facial Recongition
- Optical Character Recognition
- Bulk Metadata
- Moderation
- Offensive Content
- Sentiment Analysis
- Analysis
- Insights
- Improves Over Time
- Celebrities
- Similar Content
- Language Identification
- Logo Detection
- Landmark Detection
- Image Attributes
definitions:
ImageRequest:
properties:
requests:
type: array
items:
type: object
properties:
image:
type: object
properties:
content:
type: object
features:
type: array
items:
type: object
properties:
type:
type: string
ImageResponse:
properties:
responses:
type: array
items:
type: object
properties:
textAnnotations:
type: array
items:
type: object
properties:
locale:
type: string
description:
type: string
boundingPoly:
type: object
properties:
vertices:
type: array
items:
type: object
properties:
x:
type: integer
format: int32
y:
type: integer
format: int32
fullTextAnnotation:
type: object
properties:
pages:
type: array
items:
type: object
properties:
property:
type: object
properties:
detectedLanguages:
type: array
items:
type: object
properties:
languageCode:
type: string
confidence:
type: number
width:
type: integer
format: int32
height:
type: integer
format: int32
blocks:
type: array
items:
type: object
properties:
property:
type: object
properties:
detectedLanguages:
type: array
items:
type: object
properties:
languageCode:
type: string
confidence:
type: integer
format: int32
boundingBox:
type: object
properties:
vertices:
type: array
items:
type: object
properties:
x:
type: integer
format: int32
y:
type: integer
format: int32
paragraphs:
type: array
items:
type: object
properties:
property:
type: object
properties:
detectedLanguages:
type: array
items:
type: object
properties:
languageCode:
type: string
confidence:
type: integer
format: int32
boundingBox:
type: object
properties:
vertices:
type: array
items:
type: object
properties:
x:
type: integer
format: int32
y:
type: integer
format: int32
words:
type: array
items:
type: object
properties:
property:
type: object
properties:
detectedLanguages:
type: array
items:
type: object
properties:
languageCode:
type: string
boundingBox:
type: object
properties:
vertices:
type: array
items:
type: object
properties:
x:
type: integer
format: int32
y:
type: integer
format: int32
symbols:
type: array
items:
type: object
properties:
property:
type: object
properties:
detectedLanguages:
type: array
items:
type: object
properties:
languageCode:
type: string
boundingBox:
type: object
properties:
vertices:
type: array
items:
type: object
properties:
x:
type: integer
format: int32
y:
type: integer
format: int32
text:
type: string
blockType:
type: string
text:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment