func NewFeature(d int) *vision.Feature {
	return &vision.Feature{Type: DetectionType(d)}
}
NewFeature returns a pointer to a new vision's Feature object.
package pigeon
import (
	vision "google.golang.org/api/vision/v1"
)
const (
	TypeUnspecified = iota
	FaceDetection
	LandmarkDetection
	LogoDetection
	LabelDetection
	TextDetection
	DocumentTextDetection
	SafeSearchDetection
	ImageProperties
)
func DetectionType(d int) string {
	switch d {
	case TypeUnspecified:
		return "TYPE_UNSPECIFIED"
	case FaceDetection:
		return "FACE_DETECTION"
	case LandmarkDetection:
		return "LANDMARK_DETECTION"
	case LogoDetection:
		return "LOGO_DETECTION"
	case LabelDetection:
		return "LABEL_DETECTION"
	case TextDetection:
		return "TEXT_DETECTION"
	case DocumentTextDetection:
		return "DOCUMENT_TEXT_DETECTION"
	case SafeSearchDetection:
		return "SAFE_SEARCH_DETECTION"
	case ImageProperties:
		return "IMAGE_PROPERTIES"
	}
	return ""
}