npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

wizart-vision

v1.0.7

Published

Wizart Computer Vision SDK

Downloads

20

Readme

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 => {})