on develop help sign in
Regenerating gogol-vision from latest service definition
commit3c99fdccb3b68a22160f5a96f36c23a09f3e76ff authorBrendan Hay <brendan.g.hay@gmail.com> dateTue 10 May 2016, 16:12 (10 years ago) parent2802408
5 files changed+27−24
gogol-vision/gen/Network/Google/Resource/Vision/Images/Annotate.hs+1−1 gogol-vision/gen/Network/Google/Vision.hs+5−6 gogol-vision/gen/Network/Google/Vision/Types.hs+1−1 gogol-vision/gen/Network/Google/Vision/Types/Product.hs+17−12 gogol-vision/gogol-vision.cabal+3−4
gogol-vision/gen/Network/Google/Resource/Vision/Images/Annotate.hs+1−1
@@ -22,7 +22,7 @@
2222--
2323-- Run image detection and annotation for a batch of images.
2424--
25−-- /See:/ <https://cloud.google.com/vision/ Cloud Vision API Reference> for @vision.images.annotate@.
25+-- /See:/ <https://cloud.google.com/vision/ Google Cloud Vision API Reference> for @vision.images.annotate@.
2626module Network.Google.Resource.Vision.Images.Annotate
2727 (
2828 -- * REST Resource
gogol-vision/gen/Network/Google/Vision.hs+5−6
@@ -13,12 +13,11 @@
1313-- Stability : auto-generated
1414-- Portability : non-portable (GHC extensions)
1515--
16−-- The Google Cloud Vision API allows developers to easily integrate Google
17−-- vision features, including image labeling, face, logo, and landmark
18−-- detection, optical character recognition (OCR), and detection of
19−-- explicit content, into applications.
16+-- Integrates Google Vision features, including image labeling, face, logo,
17+-- and landmark detection, optical character recognition (OCR), and
18+-- detection of explicit content, into applications.
2019--
21−-- /See:/ <https://cloud.google.com/vision/ Cloud Vision API Reference>
20+-- /See:/ <https://cloud.google.com/vision/ Google Cloud Vision API Reference>
2221module Network.Google.Vision
2322 (
2423 -- * Service Configuration
@@ -264,5 +263,5 @@ import Network.Google.Vision.Types
264263TODO
265264-}
266265
267−-- | Represents the entirety of the methods and resources available for the Cloud Vision API service.
266+-- | Represents the entirety of the methods and resources available for the Google Cloud Vision API service.
268267type VisionAPI = ImagesAnnotateResource
gogol-vision/gen/Network/Google/Vision/Types.hs+1−1
@@ -245,7 +245,7 @@ import Network.Google.Prelude
245245import Network.Google.Vision.Types.Product
246246import Network.Google.Vision.Types.Sum
247247
248−-- | Default request referring to version 'v1' of the Cloud Vision API. This contains the host and root path used as a starting point for constructing service requests.
248+-- | Default request referring to version 'v1' of the Google Cloud Vision API. This contains the host and root path used as a starting point for constructing service requests.
249249visionService :: ServiceConfig
250250visionService
251251 = defaultService (ServiceId "vision:v1")
gogol-vision/gen/Network/Google/Vision/Types/Product.hs+17−12
@@ -94,9 +94,9 @@ instance ToJSON LatLng where
9494 ("longitude" .=) <$> _llLongitude])
9595
9696-- | The /Feature/ indicates what type of image detection task to perform.
97−-- Users describe the type of Vision tasks to perform over images by using
98−-- /Feature/s. Features encode the Vision vertical to operate on and the
99−-- number of top-scoring results to return.
97+-- Users describe the type of Google Cloud Vision API tasks to perform over
98+-- images by using /Feature/s. Features encode the Cloud Vision API
99+-- vertical to operate on and the number of top-scoring results to return.
100100--
101101-- /See:/ 'feature' smart constructor.
102102data Feature = Feature'
@@ -282,7 +282,7 @@ instance ToJSON Property where
282282 (catMaybes
283283 [("value" .=) <$> _pValue, ("name" .=) <$> _pName])
284284
285−-- | Client image to perform Vision tasks over.
285+-- | Client image to perform Google Cloud Vision API tasks over.
286286--
287287-- /See:/ 'image' smart constructor.
288288data Image = Image'
@@ -917,7 +917,7 @@ instance ToJSON ImageProperties where
917917 (catMaybes
918918 [("dominantColors" .=) <$> _ipDominantColors])
919919
920−-- | A face annotation contains the results of face detection.
920+-- | A face annotation object contains the results of face detection.
921921--
922922-- /See:/ 'faceAnnotation' smart constructor.
923923data FaceAnnotation = FaceAnnotation'
@@ -1216,7 +1216,11 @@ eaTopicality
12161216eaLocale :: Lens' EntityAnnotation (Maybe Text)
12171217eaLocale = lens _eaLocale (\ s a -> s{_eaLocale = a})
12181218
1219−-- | Image region to which this entity belongs.
1219+-- | Image region to which this entity belongs. Not filled currently for
1220+-- \`LABEL_DETECTION\` features. For \`TEXT_DETECTION\` (OCR),
1221+-- \`boundingPoly\`s are produced for the entire text detected in an image
1222+-- region, followed by \`boundingPoly\`s for each word within the detected
1223+-- text.
12201224eaBoundingPoly :: Lens' EntityAnnotation (Maybe BoundingPoly)
12211225eaBoundingPoly
12221226 = lens _eaBoundingPoly
@@ -1230,8 +1234,9 @@ eaConfidence
12301234 = lens _eaConfidence (\ s a -> s{_eaConfidence = a})
12311235 . mapping _Coerce
12321236
1233−-- | Knowledge Graph entity ID. Maps to a freebase entity ID. (for example,
1234−-- \"Google\" maps to: mid \/m\/045c7b).
1237+-- | Opaque entity ID. Some IDs might be available in Knowledge Graph(KG).
1238+-- For more details on KG please see:
1239+-- https:\/\/developers.google.com\/knowledge-graph\/
12351240eaMid :: Lens' EntityAnnotation (Maybe Text)
12361241eaMid = lens _eaMid (\ s a -> s{_eaMid = a})
12371242
@@ -1288,8 +1293,8 @@ instance ToJSON EntityAnnotation where
12881293 ("description" .=) <$> _eaDescription,
12891294 ("properties" .=) <$> _eaProperties])
12901295
1291−-- | Request for performing Vision tasks over a user-provided image, with
1292−-- user-requested features.
1296+-- | Request for performing Google Cloud Vision API tasks over a
1297+-- user-provided image, with user-requested features.
12931298--
12941299-- /See:/ 'annotateImageRequest' smart constructor.
12951300data AnnotateImageRequest = AnnotateImageRequest'
@@ -1349,7 +1354,7 @@ instance ToJSON AnnotateImageRequest where
13491354 ("features" .=) <$> _airFeatures,
13501355 ("imageContext" .=) <$> _airImageContext])
13511356
1352−-- | External image source (i.e. Google Cloud Storage image location).
1357+-- | External image source (Google Cloud Storage image location).
13531358--
13541359-- /See:/ 'imageSource' smart constructor.
13551360newtype ImageSource = ImageSource'
@@ -1369,7 +1374,7 @@ imageSource =
13691374 }
13701375
13711376-- | Google Cloud Storage image URI. It must be in the following form:
1372−-- \"gs:\/\/bucket_name\/object_name\". For more details, please see:
1377+-- \`gs:\/\/bucket_name\/object_name\`. For more details, please see:
13731378-- https:\/\/cloud.google.com\/storage\/docs\/reference-uris. NOTE: Cloud
13741379-- Storage object versioning is not supported!
13751380isGcsImageURI :: Lens' ImageSource (Maybe Text)
gogol-vision/gogol-vision.cabal+3−4
@@ -14,10 +14,9 @@ cabal-version: >= 1.10
1414extra-source-files: README.md
1515
1616description:
17− The Google Cloud Vision API allows developers to easily integrate Google
18− vision features, including image labeling, face, logo, and landmark
19− detection, optical character recognition (OCR), and detection of
20− explicit content, into applications.
17+ Integrates Google Vision features, including image labeling, face, logo,
18+ and landmark detection, optical character recognition (OCR), and
19+ detection of explicit content, into applications.
2120 .
2221 /Warning:/ This is an experimental prototype/preview release which is still
2322 under exploratory development and not intended for public use, caveat emptor!