on develop help sign in
Regenerating gogol-vision from latest service definition
3c99fdcBrendan Hay
gogol-vision/gen/Network/Google/Resource/Vision/Images/Annotate.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Run image detection and annotation for a batch of images.
23-- Run image detection and annotation for a batch of images.
24--
24--
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@.
26module Network.Google.Resource.Vision.Images.Annotate
26module Network.Google.Resource.Vision.Images.Annotate
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-vision/gen/Network/Google/Vision.hs+5−6
@@ -13,12 +13,11 @@
13-- Stability : auto-generated
13-- Stability : auto-generated
14-- Portability : non-portable (GHC extensions)
14-- Portability : non-portable (GHC extensions)
15--
15--
16−-- The Google Cloud Vision API allows developers to easily integrate Google
17−-- vision features, including image labeling, face, logo, and landmark
16+-- Integrates Google Vision features, including image labeling, face, logo,
18−-- detection, optical character recognition (OCR), and detection of
17+-- and landmark detection, optical character recognition (OCR), and
19−-- explicit content, into applications.
18+-- detection of explicit content, into applications.
20--
19--
21−-- /See:/ <https://cloud.google.com/vision/ Cloud Vision API Reference>
20+-- /See:/ <https://cloud.google.com/vision/ Google Cloud Vision API Reference>
22module Network.Google.Vision
21module Network.Google.Vision
23 (
22 (
24 -- * Service Configuration
23 -- * Service Configuration
@@ -264,5 +263,5 @@ import Network.Google.Vision.Types
264TODO
263TODO
265-}
264-}
266
265
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.
268type VisionAPI = ImagesAnnotateResource
267type VisionAPI = ImagesAnnotateResource
gogol-vision/gen/Network/Google/Vision/Types.hs+1−1
@@ -245,7 +245,7 @@ import Network.Google.Prelude
245import Network.Google.Vision.Types.Product
245import Network.Google.Vision.Types.Product
246import Network.Google.Vision.Types.Sum
246import Network.Google.Vision.Types.Sum
247
247
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.
249visionService :: ServiceConfig
249visionService :: ServiceConfig
250visionService
250visionService
251 = defaultService (ServiceId "vision:v1")
251 = defaultService (ServiceId "vision:v1")
gogol-vision/gen/Network/Google/Vision/Types/Product.hs+17−12
@@ -94,9 +94,9 @@ instance ToJSON LatLng where
94 ("longitude" .=) <$> _llLongitude])
94 ("longitude" .=) <$> _llLongitude])
95
95
96-- | The /Feature/ indicates what type of image detection task to perform.
96-- | 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
97+-- Users describe the type of Google Cloud Vision API tasks to perform over
98−-- /Feature/s. Features encode the Vision vertical to operate on and the
98+-- images by using /Feature/s. Features encode the Cloud Vision API
99−-- number of top-scoring results to return.
99+-- vertical to operate on and the number of top-scoring results to return.
100--
100--
101-- /See:/ 'feature' smart constructor.
101-- /See:/ 'feature' smart constructor.
102data Feature = Feature'
102data Feature = Feature'
@@ -282,7 +282,7 @@ instance ToJSON Property where
282 (catMaybes
282 (catMaybes
283 [("value" .=) <$> _pValue, ("name" .=) <$> _pName])
283 [("value" .=) <$> _pValue, ("name" .=) <$> _pName])
284
284
285−-- | Client image to perform Vision tasks over.
285+-- | Client image to perform Google Cloud Vision API tasks over.
286--
286--
287-- /See:/ 'image' smart constructor.
287-- /See:/ 'image' smart constructor.
288data Image = Image'
288data Image = Image'
@@ -917,7 +917,7 @@ instance ToJSON ImageProperties where
917 (catMaybes
917 (catMaybes
918 [("dominantColors" .=) <$> _ipDominantColors])
918 [("dominantColors" .=) <$> _ipDominantColors])
919
919
920−-- | A face annotation contains the results of face detection.
920+-- | A face annotation object contains the results of face detection.
921--
921--
922-- /See:/ 'faceAnnotation' smart constructor.
922-- /See:/ 'faceAnnotation' smart constructor.
923data FaceAnnotation = FaceAnnotation'
923data FaceAnnotation = FaceAnnotation'
@@ -1216,7 +1216,11 @@ eaTopicality
1216eaLocale :: Lens' EntityAnnotation (Maybe Text)
1216eaLocale :: Lens' EntityAnnotation (Maybe Text)
1217eaLocale = lens _eaLocale (\ s a -> s{_eaLocale = a})
1217eaLocale = lens _eaLocale (\ s a -> s{_eaLocale = a})
1218
1218
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.
1220eaBoundingPoly :: Lens' EntityAnnotation (Maybe BoundingPoly)
1224eaBoundingPoly :: Lens' EntityAnnotation (Maybe BoundingPoly)
1221eaBoundingPoly
1225eaBoundingPoly
1222 = lens _eaBoundingPoly
1226 = lens _eaBoundingPoly
@@ -1230,8 +1234,9 @@ eaConfidence
1230 = lens _eaConfidence (\ s a -> s{_eaConfidence = a})
1234 = lens _eaConfidence (\ s a -> s{_eaConfidence = a})
1231 . mapping _Coerce
1235 . mapping _Coerce
1232
1236
1233−-- | Knowledge Graph entity ID. Maps to a freebase entity ID. (for example,
1237+-- | Opaque entity ID. Some IDs might be available in Knowledge Graph(KG).
1234−-- \"Google\" maps to: mid \/m\/045c7b).
1238+-- For more details on KG please see:
1239+-- https:\/\/developers.google.com\/knowledge-graph\/
1235eaMid :: Lens' EntityAnnotation (Maybe Text)
1240eaMid :: Lens' EntityAnnotation (Maybe Text)
1236eaMid = lens _eaMid (\ s a -> s{_eaMid = a})
1241eaMid = lens _eaMid (\ s a -> s{_eaMid = a})
1237
1242
@@ -1288,8 +1293,8 @@ instance ToJSON EntityAnnotation where
1288 ("description" .=) <$> _eaDescription,
1293 ("description" .=) <$> _eaDescription,
1289 ("properties" .=) <$> _eaProperties])
1294 ("properties" .=) <$> _eaProperties])
1290
1295
1291−-- | Request for performing Vision tasks over a user-provided image, with
1296+-- | Request for performing Google Cloud Vision API tasks over a
1292−-- user-requested features.
1297+-- user-provided image, with user-requested features.
1293--
1298--
1294-- /See:/ 'annotateImageRequest' smart constructor.
1299-- /See:/ 'annotateImageRequest' smart constructor.
1295data AnnotateImageRequest = AnnotateImageRequest'
1300data AnnotateImageRequest = AnnotateImageRequest'
@@ -1349,7 +1354,7 @@ instance ToJSON AnnotateImageRequest where
1349 ("features" .=) <$> _airFeatures,
1354 ("features" .=) <$> _airFeatures,
1350 ("imageContext" .=) <$> _airImageContext])
1355 ("imageContext" .=) <$> _airImageContext])
1351
1356
1352−-- | External image source (i.e. Google Cloud Storage image location).
1357+-- | External image source (Google Cloud Storage image location).
1353--
1358--
1354-- /See:/ 'imageSource' smart constructor.
1359-- /See:/ 'imageSource' smart constructor.
1355newtype ImageSource = ImageSource'
1360newtype ImageSource = ImageSource'
@@ -1369,7 +1374,7 @@ imageSource =
1369 }
1374 }
1370
1375
1371-- | Google Cloud Storage image URI. It must be in the following form:
1376-- | 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:
1373-- https:\/\/cloud.google.com\/storage\/docs\/reference-uris. NOTE: Cloud
1378-- https:\/\/cloud.google.com\/storage\/docs\/reference-uris. NOTE: Cloud
1374-- Storage object versioning is not supported!
1379-- Storage object versioning is not supported!
1375isGcsImageURI :: Lens' ImageSource (Maybe Text)
1380isGcsImageURI :: Lens' ImageSource (Maybe Text)
gogol-vision/gogol-vision.cabal+3−4
@@ -14,10 +14,9 @@ cabal-version: >= 1.10
14extra-source-files: README.md
14extra-source-files: README.md
15
15
16description:
16description:
17− The Google Cloud Vision API allows developers to easily integrate Google
18− vision features, including image labeling, face, logo, and landmark
17+ Integrates Google Vision features, including image labeling, face, logo,
19− detection, optical character recognition (OCR), and detection of
18+ and landmark detection, optical character recognition (OCR), and
20− explicit content, into applications.
19+ detection of explicit content, into applications.
21 .
20 .
22 /Warning:/ This is an experimental prototype/preview release which is still
21 /Warning:/ This is an experimental prototype/preview release which is still
23 under exploratory development and not intended for public use, caveat emptor!
22 under exploratory development and not intended for public use, caveat emptor!