OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.vision.v1; | 3 library googleapis.vision.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
951 if (content != null) { | 951 if (content != null) { |
952 _json["content"] = content; | 952 _json["content"] = content; |
953 } | 953 } |
954 if (source != null) { | 954 if (source != null) { |
955 _json["source"] = (source).toJson(); | 955 _json["source"] = (source).toJson(); |
956 } | 956 } |
957 return _json; | 957 return _json; |
958 } | 958 } |
959 } | 959 } |
960 | 960 |
961 /** Image context. */ | 961 /** Image context and/or feature-specific parameters. */ |
962 class ImageContext { | 962 class ImageContext { |
963 /** | 963 /** |
964 * List of languages to use for TEXT_DETECTION. In most cases, an empty value | 964 * List of languages to use for TEXT_DETECTION. In most cases, an empty value |
965 * yields the best results since it enables automatic language detection. For | 965 * yields the best results since it enables automatic language detection. For |
966 * languages based on the Latin alphabet, setting `language_hints` is not | 966 * languages based on the Latin alphabet, setting `language_hints` is not |
967 * needed. In rare cases, when the language of the text in the image is known, | 967 * needed. In rare cases, when the language of the text in the image is known, |
968 * setting a hint will help get better results (although it will be a | 968 * setting a hint will help get better results (although it will be a |
969 * significant hindrance if the hint is wrong). Text detection returns an | 969 * significant hindrance if the hint is wrong). Text detection returns an |
970 * error if one or more of the specified languages is not one of the | 970 * error if one or more of the specified languages is not one of the |
971 * [supported | 971 * [supported |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1535 var _json = new core.Map(); | 1535 var _json = new core.Map(); |
1536 if (x != null) { | 1536 if (x != null) { |
1537 _json["x"] = x; | 1537 _json["x"] = x; |
1538 } | 1538 } |
1539 if (y != null) { | 1539 if (y != null) { |
1540 _json["y"] = y; | 1540 _json["y"] = y; |
1541 } | 1541 } |
1542 return _json; | 1542 return _json; |
1543 } | 1543 } |
1544 } | 1544 } |
OLD | NEW |