Skip to main content

Wizart Computer Vision SDK

Project description

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

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

wizart-vision-1.0.6.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

wizart_vision-1.0.6-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file wizart-vision-1.0.6.tar.gz.

File metadata

  • Download URL: wizart-vision-1.0.6.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.16

File hashes

Hashes for wizart-vision-1.0.6.tar.gz
Algorithm Hash digest
SHA256 57f075e7c72c5e264155dd3292a4bf9fe4c305f8758dc2a711a1236505f95472
MD5 7fa1c9d8fa999dd1d726f3d65e6cb036
BLAKE2b-256 30c0a0559749f09626b5f45f7b122aba6e11fd063ebda57eb3bd68bea19663f9

See more details on using hashes here.

File details

Details for the file wizart_vision-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: wizart_vision-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.16

File hashes

Hashes for wizart_vision-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 397e07ff0293f468e552ba87b49eb788653d1ac82f58291df3f519cbf92e0593
MD5 8c318a0b0837ee4565ef64bbcbb42dc7
BLAKE2b-256 d0449ee26e73f79312d79d17fea8de9f0a2526af5f039ad39a288e985c688219

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