File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,33 @@ language.
2121
2222## Getting Started
2323
24+ <!--
25+ ```python
26+ import pathlib
27+ import shutil
28+
29+ import vws_test_fixtures
30+ from mock_vws import MockVWS
31+ from mock_vws.database import VuforiaDatabase
32+
33+ mock = MockVWS(real_http=False)
34+ database = VuforiaDatabase(
35+ server_access_key='[server-access-key]',
36+ server_secret_key='[server-secret-key]',
37+ client_access_key='[client-access-key]',
38+ client_secret_key='[client-secret-key]',
39+ )
40+ mock.add_database(database=database)
41+ mock.__enter__()
42+
43+ # We rely on implementation details of the fixtures package.
44+ image = pathlib.Path(vws_test_fixtures.__path__[0]) / 'high_quality_image.jpg'
45+ assert image.exists(), image.resolve()
46+ new_image = pathlib.Path('high_quality_image.jpg')
47+ shutil.copy(image, new_image)
48+ ```
49+ -->
50+
2451``` python
2552import io
2653import pathlib
@@ -59,6 +86,15 @@ matching_targets = cloud_reco_client.query(image=my_image)
5986assert matching_targets[0 ].target_id == target_id
6087```
6188
89+ <!--
90+ ```python
91+ import pathlib
92+
93+ new_image = pathlib.Path('high_quality_image.jpg')
94+ new_image.unlink()
95+ ```
96+ -->
97+
6298## Full Documentation
6399
64100See the [ full
You can’t perform that action at this time.
0 commit comments