Skip to main content

Wizart Vision SDK for Python

The Wizart Vision SDK is a set of software development tools and libraries provided by Wizart.ai that enables developers to integrate the Wizart Vision API's capabilities into their applications more easily. The SDK acts as a bridge between the Vision API and the developer's application by providing a standardized set of functions and interfaces that the developer can use to access the API's functionality.

Looking for more documentation?

⭐️ Start using Wizart Vision API with the RapirAPI platform.

Features

Wizart Vision technology base consists of several core components that power our computer vision solutions. These include segmentation, detection, reconstruction, and analysis, each of which plays a critical role in enabling advanced visual capabilities. Below are links to learn more about each component and how they contribute to our powerful Vision API.

https://user-images.githubusercontent.com/408283/221159389-16f146f9-fda7-4dfb-84e4-16d2d1500e59.mp4

Installation

pip3 install wizart-vision

Authentication

Once you received X-RapidAPI-Key, you need initialize vision client

from wizart.vision import ComputerVisionClient as vc

client = vc(
    token="Your token"
)

Usage

See notebook with examples. Open In Colab The client allows you to perform requests similar to those described in the documentation.

You will operate just with few parameters.

  • resource - file system path or http link to the image
  • feature - entity or surface name, available in Wizart Vision SDK
from wizart.vision import ComputerVisionClient as vc

# use this feature object for segmentation, detection, reconstruction and interior calls
vc.feature

# currently supported feature entities
vc.feature.WALL
vc.feature.CEILING
vc.feature.FLOOR
vc.feature.WINDOW

# use this object for different analysis calls
vc.analysis_types

# currently supported analysis types
vc.analysis_types.CAMERA
vc.analysis_types.IMAGE_INFO
vc.analysis_types.INTERIOR_TYPE

Segmentation

Indoor scene semantic decomposition process.

Obtaining indoor segmentation mask

mask = client.segmentation(
    resource="file system path or http link to image"
)

Segmentation by feature (i.e. by surface object)

mask = client.segmentation(
    resource="file system path or http link to image",
    feature=vc.feature.CEILING
)

To obtain only the mask contours, enable the vectorized option by setting it to True.

mask = client.segmentation(
    resource="file system path or http link to image",
    feature=vc.feature.CEILING,
    vectorized=True
)

Detection

Localize objects coordinates in the photo.

Detect all supported entities

feature = client.detection(
    resource="path to image"
)

Single entity detection, e.g. detect only the walls

feature = client.detection(
    resource="path to image",
    feature=vc.feature.WALL
)

Reconstruction

Obtain information about the 3D dimensions (real sizes) and positions of scene objects in the photo.

Reconstruct all supported entities and scene params

feature = client.reconstruction(
    resource="path to image"
)

Reconstruct a specific entity and scene params

feature = client.reconstruction(
    resource="path to image",
    feature=vc.feature.FLOOR
)

Analyze

The Analysis API includes a set of different computer vision solutions based on neural networks.

Analyse image, interior and camera

feature = client.analysis(
    resource="path to image"
)

Perform a specific type of analysis

feature = client.analysis(
    resource="path to image",
    feature=vc.analysis_types.CAMERA
)

Interior

Provides the ability to get all the data on the requested feature that we were able to extract from the uploaded interior photo.

Describe all entities

feature = client.interior(
    resource="path to image"
)

Get data for a specific entity

feature = client.interior(
    resource="path to image",
    feature=vc.feature.CEILING
)

To obtain only the mask contours, enable the vectorized option by setting it to True.

mask = client.interior(
    resource="file system path or http link to image",
    vectorized=True
)

Supported analysis types and features are listed in _client_enums.py

Release History

1.0.2 (2022-08-23)

  • Added the ability to receive masks in vector form for interior requests

1.0.0 (2022-07-18)

  • Initial Release

Metadata

Release files for wizart-vision 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wizart-vision 1.0.6
File Size Uploaded Provenance
wizart-vision-1.0.6.tar.gz 5.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for wizart-vision 1.0.6
File Interpreter ABI Platform
wizart_vision-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / wizart-vision-1.0.6.tar.gz

Download URL wizart-vision-1.0.6.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
57f075e7c72c5e264155dd3292a4bf9fe4c305f8758dc2a711a1236505f95472
BLAKE2b-256 checksum
How to use checksums
30c0a0559749f09626b5f45f7b122aba6e11fd063ebda57eb3bd68bea19663f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.16

Release files / wizart_vision-1.0.6-py3-none-any.whl

Download URL wizart_vision-1.0.6-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
397e07ff0293f468e552ba87b49eb788653d1ac82f58291df3f519cbf92e0593
BLAKE2b-256 checksum
How to use checksums
d0449ee26e73f79312d79d17fea8de9f0a2526af5f039ad39a288e985c688219
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.16

Security for wizart-vision 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page