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
Built Distribution
Hashes for wizart_vision-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98eb4b12a7ce02765005af4cda38b8602b0da36ce183d8d5186a439bd36fc1b5 |
|
MD5 | 3c871f35a3aeab3e6edd7e73c13fca54 |
|
BLAKE2b-256 | 20d4dc341f75bf361e50be6b793385be8ba18faeedf93335fa8752a383616d78 |