mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-26 23:05:11 +08:00
Update index.d.ts
This commit is contained in:
10
packages/ml-vision/lib/index.d.ts
vendored
10
packages/ml-vision/lib/index.d.ts
vendored
@@ -358,9 +358,6 @@ export namespace FirebaseVisionTypes {
|
|||||||
* #### Example
|
* #### Example
|
||||||
*
|
*
|
||||||
* ```js
|
* ```js
|
||||||
* const textRecognizerOptions = new VisionCloudTextRecognizerOptions();
|
|
||||||
* textRecognizerOptions.setHintedLanguages(['fr', 'de']);
|
|
||||||
*
|
|
||||||
* await firebase.vision().cloudTextRecognizerProcessImage(filePath, {
|
* await firebase.vision().cloudTextRecognizerProcessImage(filePath, {
|
||||||
* languageHints: ['fr', 'de'],
|
* languageHints: ['fr', 'de'],
|
||||||
* });
|
* });
|
||||||
@@ -1102,10 +1099,9 @@ export namespace FirebaseVisionTypes {
|
|||||||
* #### Example
|
* #### Example
|
||||||
*
|
*
|
||||||
* ```js
|
* ```js
|
||||||
* const options = new firebase.vision.VisionImageLabelerOptions();
|
* const labels = await firebase.vision().imageLabelerProcessImage(filePath, {
|
||||||
* options.setConfidenceThreshold(0.8);
|
* confidenceThreshold: 0.8,
|
||||||
*
|
* });
|
||||||
* const labels = await firebase.vision().imageLabelerProcessImage(filePath, options);
|
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @param imageFilePath A local image file path.
|
* @param imageFilePath A local image file path.
|
||||||
|
|||||||
Reference in New Issue
Block a user