wizart-vision

1.0.7 • Public • Published

Wizart Vision SDK for JavaScript

Vision API's client SDK for Node.js

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

npm install wizart-vision

Authentication

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

const wv = require('./dist/main.bundle.js')

const client = new wv.WizartVision("your X-RapidAPI-Key")

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
const wv = require('./dist/main.min.js')

// use this FeatureTypes object for segmentation, detection, reconstruction and interior calls
wv.FeatureTypes

// currently supported feature types
wv.FeatureTypes.WALL
wv.FeatureTypes.CEILING
wv.FeatureTypes.FLOOR
wv.FeatureTypes.WINDOW

// use this object for different analysis calls
wv.AnalysisTypes

// currently supported analysis types
wv.AnalysisTypes.CAMERA
wv.AnalysisTypes.IMAGE_INFO
wv.AnalysisTypes.INTERIOR_TYPE

Segmentation

Indoor scene semantic decomposition process.

Obtaining indoor segmentation mask

const data = new FormData();
data.append("room_image", inputFile.files[0]);

client.segmentation(data).then(response => {})

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

const data = new FormData();
data.append("room_image", inputFile.files[0]);

client.segmentation(data, wv.FeatureTypes.WALL).then(response => {})

To obtain only the mask contours, add vectorized param by setting it to true.

const data = new FormData();
data.append("room_image", inputFile.files[0]);
data.append('vectorized', true)

client.segmentation(data, wv.FeatureTypes.WALL).then(response => {})

Detection

Localize objects coordinates in the photo.

Detect all supported entities

const data = new FormData();
data.append("room_image", inputFile.files[0]);

client.detection(data).then(response => {})

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

const data = new FormData();
data.append("room_image", inputFile.files[0]);

client.detection(data, wv.FeatureTypes.CEILING).then(response => {})

Reconstruction

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

Reconstruct all supported entities and scene params

const data = new FormData();
data.append("room_image", inputFile.files[0]);

client.reconstruction(data).then(response => {})

Reconstruct a specific entity and scene params

const data = new FormData();
data.append("room_image", inputFile.files[0]);

client.reconstruction(data, wv.FeatureTypes.FLOOR).then(response => {})

Analyze

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

Analyse image, interior and camera

const data = new FormData();
data.append("room_image", inputFile.files[0]);

client.analysis(data).then(response => {})

Perform a specific type of analysis

const data = new FormData();
data.append("room_image", inputFile.files[0]);

client.analysis(data, wv.AnalysisTypes.CAMERA).then(response => {})

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

const data = new FormData();
data.append("room_image", inputFile.files[0]);

client.interior(data).then(response => {})

Get data for a specific entity

const data = new FormData();
data.append("room_image", inputFile.files[0]);

client.interior(data, wv.FeatureTypes.WALL).then(response => {})

Package Sidebar

Install

npm i wizart-vision

Weekly Downloads

26

Version

1.0.7

License

ISC

Unpacked Size

518 kB

Total Files

16

Last publish

Collaborators

  • wizart_ai