Skip to main content

Wizart Computer Vision SDK

Project description

Wizart Computer Vision SDK for Python

The Computer Vision service provides developers with access to advanced algorithms for processing images and returning information. Computer Vision algorithms analyze the content of an image in different ways, depending on the visual features you're interested in.

You can use Computer Vision in your application to:

  • Indoor semantic segmentation
  • Interior 3d reconstruction
  • Indoor layout and object detection
  • Analytics data such as image quality, interior type, camera parameters

Looking for more documentation?

If you need access to Wizart Vision API, you can get API token by sending a request

Installation

pip3 install wizart-vision

Authentication

Once you received Vision API token, you need initialize vision client

from wizart.vision import ComputerVisionClient as vc

client = vc(
    token="Your token"
)

Usage

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 - some entity available in Wizart Vision SDK
from wizart.vision import ComputerVisionClient as vc

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

# contains next entities
vc.feature.WALL
vc.feature.CEILING
vc.feature.FLOOR
vc.feature.WINDOW

# use it for analysis call
vc.analysis_types

# contains next entities
vc.analysis_types.CAMERA
vc.analysis_types.IMAGE_INFO
vc.analysis_types.INTERIOR_TYPE

Segmentation

Semantic segmentation

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

Segmentation by feature

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

To get mask contours

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

Detection

All entities detection

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

Single entity detection

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

Reconstruction

Multiple

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

Single

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

Analyze

Multiple

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

Single

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

Interior

All

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

Single

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

Release History

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.1.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

wizart_vision-1.0.1-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

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