huaweicloudsdkimagesearch 3.1.97__py2.py3-none-any.whl → 3.1.99__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of huaweicloudsdkimagesearch might be problematic. Click here for more details.
- huaweicloudsdkimagesearch/v2/model/search_optional_param.py +32 -3
- huaweicloudsdkimagesearch/v2/model/search_param.py +33 -4
- {huaweicloudsdkimagesearch-3.1.97.dist-info → huaweicloudsdkimagesearch-3.1.99.dist-info}/METADATA +2 -2
- {huaweicloudsdkimagesearch-3.1.97.dist-info → huaweicloudsdkimagesearch-3.1.99.dist-info}/RECORD +7 -7
- {huaweicloudsdkimagesearch-3.1.97.dist-info → huaweicloudsdkimagesearch-3.1.99.dist-info}/LICENSE +0 -0
- {huaweicloudsdkimagesearch-3.1.97.dist-info → huaweicloudsdkimagesearch-3.1.99.dist-info}/WHEEL +0 -0
- {huaweicloudsdkimagesearch-3.1.97.dist-info → huaweicloudsdkimagesearch-3.1.99.dist-info}/top_level.txt +0 -0
|
@@ -23,7 +23,8 @@ class SearchOptionalParam:
|
|
|
23
23
|
'category': 'int',
|
|
24
24
|
'collapse_key': 'str',
|
|
25
25
|
'max_scan_num': 'int',
|
|
26
|
-
'nprobe': 'int'
|
|
26
|
+
'nprobe': 'int',
|
|
27
|
+
'text_lang': 'str'
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
attribute_map = {
|
|
@@ -33,10 +34,11 @@ class SearchOptionalParam:
|
|
|
33
34
|
'category': 'category',
|
|
34
35
|
'collapse_key': 'collapse_key',
|
|
35
36
|
'max_scan_num': 'max_scan_num',
|
|
36
|
-
'nprobe': 'nprobe'
|
|
37
|
+
'nprobe': 'nprobe',
|
|
38
|
+
'text_lang': 'text_lang'
|
|
37
39
|
}
|
|
38
40
|
|
|
39
|
-
def __init__(self, do_det=None, box=None, do_cls=None, category=None, collapse_key=None, max_scan_num=None, nprobe=None):
|
|
41
|
+
def __init__(self, do_det=None, box=None, do_cls=None, category=None, collapse_key=None, max_scan_num=None, nprobe=None, text_lang=None):
|
|
40
42
|
"""SearchOptionalParam
|
|
41
43
|
|
|
42
44
|
The model defined in huaweicloud sdk
|
|
@@ -55,6 +57,8 @@ class SearchOptionalParam:
|
|
|
55
57
|
:type max_scan_num: int
|
|
56
58
|
:param nprobe: 查询考察中心点的数目。值越大精度越高,查询速度变慢。默认值为100。
|
|
57
59
|
:type nprobe: int
|
|
60
|
+
:param text_lang: 文本字符串的语言类型枚举值。
|
|
61
|
+
:type text_lang: str
|
|
58
62
|
"""
|
|
59
63
|
|
|
60
64
|
|
|
@@ -66,6 +70,7 @@ class SearchOptionalParam:
|
|
|
66
70
|
self._collapse_key = None
|
|
67
71
|
self._max_scan_num = None
|
|
68
72
|
self._nprobe = None
|
|
73
|
+
self._text_lang = None
|
|
69
74
|
self.discriminator = None
|
|
70
75
|
|
|
71
76
|
if do_det is not None:
|
|
@@ -82,6 +87,8 @@ class SearchOptionalParam:
|
|
|
82
87
|
self.max_scan_num = max_scan_num
|
|
83
88
|
if nprobe is not None:
|
|
84
89
|
self.nprobe = nprobe
|
|
90
|
+
if text_lang is not None:
|
|
91
|
+
self.text_lang = text_lang
|
|
85
92
|
|
|
86
93
|
@property
|
|
87
94
|
def do_det(self):
|
|
@@ -237,6 +244,28 @@ class SearchOptionalParam:
|
|
|
237
244
|
"""
|
|
238
245
|
self._nprobe = nprobe
|
|
239
246
|
|
|
247
|
+
@property
|
|
248
|
+
def text_lang(self):
|
|
249
|
+
"""Gets the text_lang of this SearchOptionalParam.
|
|
250
|
+
|
|
251
|
+
文本字符串的语言类型枚举值。
|
|
252
|
+
|
|
253
|
+
:return: The text_lang of this SearchOptionalParam.
|
|
254
|
+
:rtype: str
|
|
255
|
+
"""
|
|
256
|
+
return self._text_lang
|
|
257
|
+
|
|
258
|
+
@text_lang.setter
|
|
259
|
+
def text_lang(self, text_lang):
|
|
260
|
+
"""Sets the text_lang of this SearchOptionalParam.
|
|
261
|
+
|
|
262
|
+
文本字符串的语言类型枚举值。
|
|
263
|
+
|
|
264
|
+
:param text_lang: The text_lang of this SearchOptionalParam.
|
|
265
|
+
:type text_lang: str
|
|
266
|
+
"""
|
|
267
|
+
self._text_lang = text_lang
|
|
268
|
+
|
|
240
269
|
def to_dict(self):
|
|
241
270
|
"""Returns the model properties as a dict"""
|
|
242
271
|
result = {}
|
|
@@ -27,6 +27,7 @@ class SearchParam:
|
|
|
27
27
|
'image_base64': 'str',
|
|
28
28
|
'image_url': 'str',
|
|
29
29
|
'keywords': 'list[str]',
|
|
30
|
+
'text': 'str',
|
|
30
31
|
'optional_params': 'SearchOptionalParam'
|
|
31
32
|
}
|
|
32
33
|
|
|
@@ -41,17 +42,18 @@ class SearchParam:
|
|
|
41
42
|
'image_base64': 'image_base64',
|
|
42
43
|
'image_url': 'image_url',
|
|
43
44
|
'keywords': 'keywords',
|
|
45
|
+
'text': 'text',
|
|
44
46
|
'optional_params': 'optional_params'
|
|
45
47
|
}
|
|
46
48
|
|
|
47
|
-
def __init__(self, search_type=None, limit=None, offset=None, last_item=None, min_score=None, custom_tags=None, custom_num_tags=None, image_base64=None, image_url=None, keywords=None, optional_params=None):
|
|
49
|
+
def __init__(self, search_type=None, limit=None, offset=None, last_item=None, min_score=None, custom_tags=None, custom_num_tags=None, image_base64=None, image_url=None, keywords=None, text=None, optional_params=None):
|
|
48
50
|
"""SearchParam
|
|
49
51
|
|
|
50
52
|
The model defined in huaweicloud sdk
|
|
51
53
|
|
|
52
54
|
:param search_type: 搜索类型,必须为服务实例支持的搜索类型。服务实例的搜索类型列表可在创建服务实例时进行配置。 > 可以使用枚举名或者枚举值(例如IMAGE/0),枚举值可能会变动,建议使用枚举名。
|
|
53
55
|
:type search_type: str
|
|
54
|
-
:param limit: 返回搜索结果的数量,默认为10,取值范围为[1,
|
|
56
|
+
:param limit: 返回搜索结果的数量,默认为10,取值范围为[1, 1000]。
|
|
55
57
|
:type limit: int
|
|
56
58
|
:param offset: 返回搜索结果的偏移量,即返回序号在[offset, offset+limit]内的搜索结果。默认为0,取值范围为[0, N]。 - 默认情况下,搜索要求offset+limit <= 1000。 - 针对支持全量召回的场景,使用全量召回时,要求offset必须为0。
|
|
57
59
|
:type offset: int
|
|
@@ -69,6 +71,8 @@ class SearchParam:
|
|
|
69
71
|
:type image_url: str
|
|
70
72
|
:param keywords: 关键词列表,搜索时关键词数量范围为[1, 10],关键词字符长度范围为[1, 64]。使用KEYWORD搜索类型进行搜索时,必须提供该参数。
|
|
71
73
|
:type keywords: list[str]
|
|
74
|
+
:param text: 文本字符串,字符长度范围为[1, 512]。
|
|
75
|
+
:type text: str
|
|
72
76
|
:param optional_params:
|
|
73
77
|
:type optional_params: :class:`huaweicloudsdkimagesearch.v2.SearchOptionalParam`
|
|
74
78
|
"""
|
|
@@ -85,6 +89,7 @@ class SearchParam:
|
|
|
85
89
|
self._image_base64 = None
|
|
86
90
|
self._image_url = None
|
|
87
91
|
self._keywords = None
|
|
92
|
+
self._text = None
|
|
88
93
|
self._optional_params = None
|
|
89
94
|
self.discriminator = None
|
|
90
95
|
|
|
@@ -107,6 +112,8 @@ class SearchParam:
|
|
|
107
112
|
self.image_url = image_url
|
|
108
113
|
if keywords is not None:
|
|
109
114
|
self.keywords = keywords
|
|
115
|
+
if text is not None:
|
|
116
|
+
self.text = text
|
|
110
117
|
if optional_params is not None:
|
|
111
118
|
self.optional_params = optional_params
|
|
112
119
|
|
|
@@ -136,7 +143,7 @@ class SearchParam:
|
|
|
136
143
|
def limit(self):
|
|
137
144
|
"""Gets the limit of this SearchParam.
|
|
138
145
|
|
|
139
|
-
返回搜索结果的数量,默认为10,取值范围为[1,
|
|
146
|
+
返回搜索结果的数量,默认为10,取值范围为[1, 1000]。
|
|
140
147
|
|
|
141
148
|
:return: The limit of this SearchParam.
|
|
142
149
|
:rtype: int
|
|
@@ -147,7 +154,7 @@ class SearchParam:
|
|
|
147
154
|
def limit(self, limit):
|
|
148
155
|
"""Sets the limit of this SearchParam.
|
|
149
156
|
|
|
150
|
-
返回搜索结果的数量,默认为10,取值范围为[1,
|
|
157
|
+
返回搜索结果的数量,默认为10,取值范围为[1, 1000]。
|
|
151
158
|
|
|
152
159
|
:param limit: The limit of this SearchParam.
|
|
153
160
|
:type limit: int
|
|
@@ -326,6 +333,28 @@ class SearchParam:
|
|
|
326
333
|
"""
|
|
327
334
|
self._keywords = keywords
|
|
328
335
|
|
|
336
|
+
@property
|
|
337
|
+
def text(self):
|
|
338
|
+
"""Gets the text of this SearchParam.
|
|
339
|
+
|
|
340
|
+
文本字符串,字符长度范围为[1, 512]。
|
|
341
|
+
|
|
342
|
+
:return: The text of this SearchParam.
|
|
343
|
+
:rtype: str
|
|
344
|
+
"""
|
|
345
|
+
return self._text
|
|
346
|
+
|
|
347
|
+
@text.setter
|
|
348
|
+
def text(self, text):
|
|
349
|
+
"""Sets the text of this SearchParam.
|
|
350
|
+
|
|
351
|
+
文本字符串,字符长度范围为[1, 512]。
|
|
352
|
+
|
|
353
|
+
:param text: The text of this SearchParam.
|
|
354
|
+
:type text: str
|
|
355
|
+
"""
|
|
356
|
+
self._text = text
|
|
357
|
+
|
|
329
358
|
@property
|
|
330
359
|
def optional_params(self):
|
|
331
360
|
"""Gets the optional_params of this SearchParam.
|
{huaweicloudsdkimagesearch-3.1.97.dist-info → huaweicloudsdkimagesearch-3.1.99.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huaweicloudsdkimagesearch
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.99
|
|
4
4
|
Summary: ImageSearch
|
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
|
6
6
|
Author: HuaweiCloud SDK
|
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: huaweicloudsdkcore >=3.1.
|
|
25
|
+
Requires-Dist: huaweicloudsdkcore >=3.1.99
|
|
26
26
|
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
{huaweicloudsdkimagesearch-3.1.97.dist-info → huaweicloudsdkimagesearch-3.1.99.dist-info}/RECORD
RENAMED
|
@@ -30,15 +30,15 @@ huaweicloudsdkimagesearch/v2/model/run_update_data_response.py,sha256=9zL2sRVXfd
|
|
|
30
30
|
huaweicloudsdkimagesearch/v2/model/search_after_param.py,sha256=AsIwQrZ9UTvDXZXUBho_pEVrZW80wMc2E6wABda1nl4,3643
|
|
31
31
|
huaweicloudsdkimagesearch/v2/model/search_info.py,sha256=VpjLfb17AkuZWNsP0QMAGguVv86cXhQWo8Zs6BPUIuo,5586
|
|
32
32
|
huaweicloudsdkimagesearch/v2/model/search_item.py,sha256=4i3SfUb6sJyKDCQD27XZTsnQlhr8Kr4Cffn0BOmtfaI,4340
|
|
33
|
-
huaweicloudsdkimagesearch/v2/model/search_optional_param.py,sha256=
|
|
34
|
-
huaweicloudsdkimagesearch/v2/model/search_param.py,sha256=
|
|
33
|
+
huaweicloudsdkimagesearch/v2/model/search_optional_param.py,sha256=kS5M6qSJ0n4RfKD59gwOS4edXUpPq3qqdKzviM5gDvE,11373
|
|
34
|
+
huaweicloudsdkimagesearch/v2/model/search_param.py,sha256=ELhMT5g1cbzPXJQbZf-y5gox6hgLZjFfZaBSNNFVgKs,18458
|
|
35
35
|
huaweicloudsdkimagesearch/v2/model/search_rest_info.py,sha256=wnHgCYK7xXGqJWU0gpPwbUS-fBMAUaqoJGHf2ZaUfhY,4980
|
|
36
36
|
huaweicloudsdkimagesearch/v2/model/search_rest_info_image_info.py,sha256=sBfSW3Y5Y31pyCX3aFwIE4KGRY3f9vIxBjtqijJBd8o,5942
|
|
37
37
|
huaweicloudsdkimagesearch/v2/model/update_param.py,sha256=eZQbEU4wVoyjs5MaL1CI9Fl7lWAg_CAV1SArC6wmN7U,7372
|
|
38
38
|
huaweicloudsdkimagesearch/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
39
|
huaweicloudsdkimagesearch/v2/region/imagesearch_region.py,sha256=OexympI67g0rbVe6eCF_6eTsMD8AZCAs8gUIwagcLoU,1052
|
|
40
|
-
huaweicloudsdkimagesearch-3.1.
|
|
41
|
-
huaweicloudsdkimagesearch-3.1.
|
|
42
|
-
huaweicloudsdkimagesearch-3.1.
|
|
43
|
-
huaweicloudsdkimagesearch-3.1.
|
|
44
|
-
huaweicloudsdkimagesearch-3.1.
|
|
40
|
+
huaweicloudsdkimagesearch-3.1.99.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
|
41
|
+
huaweicloudsdkimagesearch-3.1.99.dist-info/METADATA,sha256=VI9nhjAYsRd6sgYEmn-T6LnlNiSvDrtPRY6-HsP4KMI,1158
|
|
42
|
+
huaweicloudsdkimagesearch-3.1.99.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
|
|
43
|
+
huaweicloudsdkimagesearch-3.1.99.dist-info/top_level.txt,sha256=RGtCSYwOXh7T2iwkijZcpGyZyCg_ttwSjlgRMqkcng8,26
|
|
44
|
+
huaweicloudsdkimagesearch-3.1.99.dist-info/RECORD,,
|
{huaweicloudsdkimagesearch-3.1.97.dist-info → huaweicloudsdkimagesearch-3.1.99.dist-info}/LICENSE
RENAMED
|
File without changes
|
{huaweicloudsdkimagesearch-3.1.97.dist-info → huaweicloudsdkimagesearch-3.1.99.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|