Documentation ¶
Index ¶
Constants ¶
View Source
const (
CLOUD_VISION_ENDPOINT = "https://vision.googleapis.com/v1alpha1/images:annotate"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnotateRequest ¶
type AnnotateRequest struct { Image *Image `json:"image"` Features []Feature `json:"features"` ImageContext *ImageContext `json:"imageContext,omitempty"` }
type AnnotateResponse ¶
type AnnotateResponse struct { FaceAnnotations []interface{} `json:"faceAnnotations"` LandmarkAnnotations []interface{} `json:"landmarkAnnotation"` LogoAnnotations []interface{} `json:"logoAnnotations"` LabelAnnotations []interface{} `json:"labelAnnotations"` TextAnnotations []interface{} `json:"textAnnotations"` SafeSearchAnnotation interface{} `json:"safeSearchAnnotation"` SuggestAnnotations []interface{} `json:"suggestAnnotations"` QueryAnnotation interface{} `json:"queryAnnotation"` Error interface{} `json:"error"` }
type AnnotateResponses ¶
type AnnotateResponses struct {
Responses []AnnotateResponse `json:"responses"`
}
type CloudVisionRequest ¶
type CloudVisionRequest struct { Requests []*AnnotateRequest `json:"requests"` User string `json:"user"` }
type Glasses ¶
func NewGlasses ¶
func (*Glasses) Do ¶
func (g *Glasses) Do(r *CloudVisionRequest) (*AnnotateResponses, error)
type Image ¶
type Image struct {
Content string `json:"content"`
}
func NewImageFromFile ¶
func NewImageFromURL ¶
type ImageContext ¶
type ImageContext struct { LatLongRect interface{} `json:"latLongRect"` ImageContextSearchExtension interface{} `json:"imageContextSearchExtension"` }
Click to show internal directories.
Click to hide internal directories.