33"""
44
55import io
6- from enum import Enum
76from typing import Any , Dict , List
87from urllib .parse import urljoin
98
109import requests
1110from urllib3 .filepost import encode_multipart_formdata
1211
1312from ._authorization import authorization_header , rfc_1123_date
13+ from .include_target_data import CloudRecoIncludeTargetData
1414from ._result_codes import raise_for_result_code
1515from .exceptions import MaxNumResultsOutOfRange
1616
1717
18- class CloudRecoIncludeTargetData (Enum ):
19- """
20- Options for the ``include_target_data`` parameter of
21- ``CloudRecoService.query``.
22- """
23-
24- TOP = 'top'
25- NONE = 'none'
26- ALL = 'all'
27-
28-
2918class CloudRecoService :
3019 """
3120 An interface to the Vuforia Cloud Recognition Web APIs.
@@ -52,7 +41,7 @@ def query(
5241 image : io .BytesIO ,
5342 max_num_results : int = 1 ,
5443 include_target_data :
55- CloudRecoIncludeTargetData = CloudRecoIncludeTargetData .TOP ,
44+ ' CloudRecoIncludeTargetData' = CloudRecoIncludeTargetData .TOP ,
5645 ) -> List [Dict [str , Any ]]:
5746 """
5847 Use the Vuforia Web Query API to make an Image Recognition Query.
@@ -71,8 +60,8 @@ def query(
7160 none (return no target_data), all (for all matched targets)".
7261
7362 Raises:
74- MaxNumResultsOutOfRange: `` max_num_results`` is not within the
75- range (1, 50).
63+ ~vws.exceptions. MaxNumResultsOutOfRange: `max_num_results`` is not
64+ within the range (1, 50).
7665
7766 Returns:
7867 An ordered list of target details of matching targets.
0 commit comments