Skip to content

Commit 257430f

Browse files
committed
docs(visual-recognition): docs updates
1 parent ceaa843 commit 257430f

File tree

1 file changed

+29
-28
lines changed

1 file changed

+29
-28
lines changed

visual-recognition/v3-generated.ts

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -66,27 +66,28 @@ class VisualRecognitionV3 extends BaseService {
6666
* Classify images with built-in or custom classifiers.
6767
*
6868
* @param {Object} [params] - The parameters to send to the service.
69-
* @param {NodeJS.ReadableStream|FileObject|Buffer} [params.images_file] - An image file (.jpg, .png) or .zip file
70-
* with images. Maximum image size is 10 MB. Include no more than 20 images and limit the .zip file to 100 MB. Encode
71-
* the image and .zip file names in UTF-8 if they contain non-ASCII characters. The service assumes UTF-8 encoding if
72-
* it encounters non-ASCII characters.
69+
* @param {NodeJS.ReadableStream|FileObject|Buffer} [params.images_file] - An image file (.gif, .jpg, .png, .tif) or
70+
* .zip file with images. Maximum image size is 10 MB. Include no more than 20 images and limit the .zip file to 100
71+
* MB. Encode the image and .zip file names in UTF-8 if they contain non-ASCII characters. The service assumes UTF-8
72+
* encoding if it encounters non-ASCII characters.
7373
*
7474
* You can also include an image with the **url** parameter.
7575
* @param {string} [params.accept_language] - The desired language of parts of the response. See the response for
7676
* details.
77-
* @param {string} [params.url] - The URL of an image to analyze. Must be in .jpg, or .png format. The minimum
78-
* recommended pixel density is 32X32 pixels per inch, and the maximum image size is 10 MB.
77+
* @param {string} [params.url] - The URL of an image (.gif, .jpg, .png, .tif) to analyze. The minimum recommended
78+
* pixel density is 32X32 pixels, but the service tends to perform better with images that are at least 224 x 224
79+
* pixels. The maximum image size is 10 MB.
7980
*
8081
* You can also include images with the **images_file** parameter.
8182
* @param {number} [params.threshold] - The minimum score a class must have to be displayed in the response. Set the
82-
* threshold to `0.0` to ignore the classification score and return all values.
83-
* @param {string[]} [params.owners] - The categories of classifiers to apply. Use `IBM` to classify against the
84-
* `default` general classifier, and use `me` to classify against your custom classifiers. To analyze the image
85-
* against both classifier categories, set the value to both `IBM` and `me`.
86-
*
87-
* The built-in `default` classifier is used if both **classifier_ids** and **owners** parameters are empty.
88-
*
89-
* The **classifier_ids** parameter overrides **owners**, so make sure that **classifier_ids** is empty.
83+
* threshold to `0.0` to return all identified classes.
84+
* @param {string[]} [params.owners] - The categories of classifiers to apply. The **classifier_ids** parameter
85+
* overrides **owners**, so make sure that **classifier_ids** is empty.
86+
* - Use `IBM` to classify against the `default` general classifier. You get the same result if both
87+
* **classifier_ids** and **owners** parameters are empty.
88+
* - Use `me` to classify against all your custom classifiers. However, for better performance use **classifier_ids**
89+
* to specify the specific custom classifiers to apply.
90+
* - Use both `IBM` and `me` to analyze the image against both classifier categories.
9091
* @param {string[]} [params.classifier_ids] - Which classifiers to apply. Overrides the **owners** parameter. You can
9192
* specify both custom and built-in classifier IDs. The built-in `default` classifier is used if both
9293
* **classifier_ids** and **owners** parameters are empty.
@@ -154,7 +155,8 @@ class VisualRecognitionV3 extends BaseService {
154155
* recognition.
155156
*
156157
* Supported image formats include .gif, .jpg, .png, and .tif. The maximum image size is 10 MB. The minimum
157-
* recommended pixel density is 32X32 pixels per inch.
158+
* recommended pixel density is 32X32 pixels, but the service tends to perform better with images that are at least
159+
* 224 x 224 pixels.
158160
*
159161
* @param {Object} [params] - The parameters to send to the service.
160162
* @param {NodeJS.ReadableStream|FileObject|Buffer} [params.images_file] - An image file (gif, .jpg, .png, .tif.) or
@@ -165,8 +167,8 @@ class VisualRecognitionV3 extends BaseService {
165167
*
166168
* You can also include an image with the **url** parameter.
167169
* @param {string} [params.url] - The URL of an image to analyze. Must be in .gif, .jpg, .png, or .tif format. The
168-
* minimum recommended pixel density is 32X32 pixels per inch, and the maximum image size is 10 MB. Redirects are
169-
* followed, so you can use a shortened URL.
170+
* minimum recommended pixel density is 32X32 pixels, but the service tends to perform better with images that are at
171+
* least 224 x 224 pixels. The maximum image size is 10 MB. Redirects are followed, so you can use a shortened URL.
170172
*
171173
* You can also include images with the **images_file** parameter.
172174
* @param {string} [params.accept_language] - The desired language of parts of the response. See the response for
@@ -438,9 +440,8 @@ class VisualRecognitionV3 extends BaseService {
438440
/**
439441
* Update a classifier.
440442
*
441-
* Update a custom classifier by adding new positive or negative classes (examples) or by adding new images to
442-
* existing classes. You must supply at least one set of positive or negative examples. For details, see [Updating
443-
* custom
443+
* Update a custom classifier by adding new positive or negative classes or by adding new images to existing classes.
444+
* You must supply at least one set of positive or negative examples. For details, see [Updating custom
444445
* classifiers](https://cloud.ibm.com/docs/services/visual-recognition/customizing.html#updating-custom-classifiers).
445446
*
446447
* Encode all names in UTF-8 if they contain non-ASCII characters (.zip and image file names, and classifier and class
@@ -679,15 +680,15 @@ namespace VisualRecognitionV3 {
679680

680681
/** Parameters for the `classify` operation. */
681682
export interface ClassifyParams {
682-
/** An image file (.jpg, .png) or .zip file with images. Maximum image size is 10 MB. Include no more than 20 images and limit the .zip file to 100 MB. Encode the image and .zip file names in UTF-8 if they contain non-ASCII characters. The service assumes UTF-8 encoding if it encounters non-ASCII characters. You can also include an image with the **url** parameter. */
683+
/** An image file (.gif, .jpg, .png, .tif) or .zip file with images. Maximum image size is 10 MB. Include no more than 20 images and limit the .zip file to 100 MB. Encode the image and .zip file names in UTF-8 if they contain non-ASCII characters. The service assumes UTF-8 encoding if it encounters non-ASCII characters. You can also include an image with the **url** parameter. */
683684
images_file?: NodeJS.ReadableStream|FileObject|Buffer;
684685
/** The desired language of parts of the response. See the response for details. */
685686
accept_language?: ClassifyConstants.AcceptLanguage | string;
686-
/** The URL of an image to analyze. Must be in .jpg, or .png format. The minimum recommended pixel density is 32X32 pixels per inch, and the maximum image size is 10 MB. You can also include images with the **images_file** parameter. */
687+
/** The URL of an image (.gif, .jpg, .png, .tif) to analyze. The minimum recommended pixel density is 32X32 pixels, but the service tends to perform better with images that are at least 224 x 224 pixels. The maximum image size is 10 MB. You can also include images with the **images_file** parameter. */
687688
url?: string;
688-
/** The minimum score a class must have to be displayed in the response. Set the threshold to `0.0` to ignore the classification score and return all values. */
689+
/** The minimum score a class must have to be displayed in the response. Set the threshold to `0.0` to return all identified classes. */
689690
threshold?: number;
690-
/** The categories of classifiers to apply. Use `IBM` to classify against the `default` general classifier, and use `me` to classify against your custom classifiers. To analyze the image against both classifier categories, set the value to both `IBM` and `me`. The built-in `default` classifier is used if both **classifier_ids** and **owners** parameters are empty. The **classifier_ids** parameter overrides **owners**, so make sure that **classifier_ids** is empty. */
691+
/** The categories of classifiers to apply. The **classifier_ids** parameter overrides **owners**, so make sure that **classifier_ids** is empty. - Use `IBM` to classify against the `default` general classifier. You get the same result if both **classifier_ids** and **owners** parameters are empty. - Use `me` to classify against all your custom classifiers. However, for better performance use **classifier_ids** to specify the specific custom classifiers to apply. - Use both `IBM` and `me` to analyze the image against both classifier categories. */
691692
owners?: string[];
692693
/** Which classifiers to apply. Overrides the **owners** parameter. You can specify both custom and built-in classifier IDs. The built-in `default` classifier is used if both **classifier_ids** and **owners** parameters are empty. The following built-in classifier IDs require no training: - `default`: Returns classes from thousands of general tags. - `food`: Enhances specificity and accuracy for images of food items. - `explicit`: Evaluates whether the image might be pornographic. */
693694
classifier_ids?: string[];
@@ -720,7 +721,7 @@ namespace VisualRecognitionV3 {
720721
export interface DetectFacesParams {
721722
/** An image file (gif, .jpg, .png, .tif.) or .zip file with images. Limit the .zip file to 100 MB. You can include a maximum of 15 images in a request. Encode the image and .zip file names in UTF-8 if they contain non-ASCII characters. The service assumes UTF-8 encoding if it encounters non-ASCII characters. You can also include an image with the **url** parameter. */
722723
images_file?: NodeJS.ReadableStream|FileObject|Buffer;
723-
/** The URL of an image to analyze. Must be in .gif, .jpg, .png, or .tif format. The minimum recommended pixel density is 32X32 pixels per inch, and the maximum image size is 10 MB. Redirects are followed, so you can use a shortened URL. You can also include images with the **images_file** parameter. */
724+
/** The URL of an image to analyze. Must be in .gif, .jpg, .png, or .tif format. The minimum recommended pixel density is 32X32 pixels, but the service tends to perform better with images that are at least 224 x 224 pixels. The maximum image size is 10 MB. Redirects are followed, so you can use a shortened URL. You can also include images with the **images_file** parameter. */
724725
url?: string;
725726
/** The desired language of parts of the response. See the response for details. */
726727
accept_language?: DetectFacesConstants.AcceptLanguage | string;
@@ -866,7 +867,7 @@ namespace VisualRecognitionV3 {
866867
classifier_id: string;
867868
/** Name of the classifier. */
868869
name: string;
869-
/** Unique ID of the account who owns the classifier. Returned when verbose=`true`. Might not be returned by some requests. */
870+
/** Unique ID of the account who owns the classifier. Might not be returned by some requests. */
870871
owner?: string;
871872
/** Training status of classifier. */
872873
status?: string;
@@ -878,9 +879,9 @@ namespace VisualRecognitionV3 {
878879
created?: string;
879880
/** Classes that define a classifier. */
880881
classes?: Class[];
881-
/** Date and time in Coordinated Universal Time (UTC) that the classifier was updated. Returned when verbose=`true`. Might not be returned by some requests. Identical to `updated` and retained for backward compatibility. */
882+
/** Date and time in Coordinated Universal Time (UTC) that the classifier was updated. Might not be returned by some requests. Identical to `updated` and retained for backward compatibility. */
882883
retrained?: string;
883-
/** Date and time in Coordinated Universal Time (UTC) that the classifier was most recently updated. The field matches either `retrained` or `created`. Returned when verbose=`true`. Might not be returned by some requests. */
884+
/** Date and time in Coordinated Universal Time (UTC) that the classifier was most recently updated. The field matches either `retrained` or `created`. Might not be returned by some requests. */
884885
updated?: string;
885886
}
886887

0 commit comments

Comments
 (0)