Skip to main content

Interact with the Vuforia Web Services (VWS) API.

Project description

Build Status codecov PyPI Documentation Status

vws-python

Python library for the Vuforia Web Services (VWS) API and the Vuforia Web Query API.

Installation

pip install vws-python

This is tested on Python 3.11+. Get in touch with adamdangoor@gmail.com if you would like to use this with another language.

Getting Started

import pathlib

from vws import VWS, CloudRecoService

server_access_key = '[server-access-key]'
server_secret_key = '[server-secret-key]'
client_access_key = '[client-access-key]'
client_secret_key = '[client-secret-key]'

vws_client = VWS(
    server_access_key=server_access_key,
    server_secret_key=server_secret_key,
)
cloud_reco_client = CloudRecoService(
    client_access_key=client_access_key,
    client_secret_key=client_secret_key,
)
name = 'my_image_name'

image = pathlib.Path('high_quality_image.jpg')
with image.open(mode='rb') as my_image_file:
    target_id = vws_client.add_target(
        name=name,
        width=1,
        image=my_image_file,
        active_flag=True,
        application_metadata=None,
    )
    vws_client.wait_for_target_processed(target_id=target_id)
    matching_targets = cloud_reco_client.query(image=my_image_file)

assert matching_targets[0].target_id == target_id

Full Documentation

See the full documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vws-python-2023.5.21.tar.gz (31.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vws_python-2023.5.21-py2.py3-none-any.whl (15.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file vws-python-2023.5.21.tar.gz.

File metadata

  • Download URL: vws-python-2023.5.21.tar.gz
  • Upload date:
  • Size: 31.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for vws-python-2023.5.21.tar.gz
Algorithm Hash digest
SHA256 712d470729b09cd82b0fd80952203acaf3702848697a4c8702feeb809b59985f
MD5 1470b8779ee7bb908a3d17706dfdbebc
BLAKE2b-256 80ca7e5c334ac26853761c11a28322178165dc41e1e233e845782836bbabe3fe

See more details on using hashes here.

File details

Details for the file vws_python-2023.5.21-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for vws_python-2023.5.21-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 055bd67ff086bdefa7a2bb4599cd406b23bd7c531484e32c1a37c4bf806dfb2b
MD5 c60741d0cd2ddb50684d762bb9c7a697
BLAKE2b-256 bd828e2c4ca6b62125e67c2a30fa5cdd408d89563e924549a6b6548f7b1df0a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page