Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

visionlit

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

visionlit

Visionlit is a JavaScript library designed for advanced computer vision tasks. It offers a comprehensive API that can be easily integrated into JavaScript applications for a variety of operations, including image segmentation, colorization, face ID verifi

  • 1.0.12
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Visionlit Package

Overview

Visionlit is a JavaScript package designed for advanced computer vision tasks. It provides a robust command-line interface and can be seamlessly integrated into Node.js applications for a variety of operations including image segmentation, colorization, face ID verification, and smart object detection.

For more information and live examples, please visit our web platform at myvisionlit.com.

To interact with the methods provided by Visionlit, you will need to create an account on this platform to obtain an API key.

Features

  • Image Segmentation: Implement custom segmentation masks.
  • Black and White Conversion: Convert color images or videos into grayscale.
  • Colorization: Reintroduce color into grayscale images using machine learning.
  • Smart Object Detection: Detect and identify objects within images, with options for custom display styles and color filters.
  • Face ID Verification: Compare faces between two images to verify identity, useful in security and authentication.
  • Identity Data Extraction: Extract and classify identity data from ID cards for specific supported countries.

Installation

To install Visionlit, run the following command:

npm install visionlit

Usage

Command Line Interface

List Available Methods

To display all executable methods:

node cli.js --list
Execute Specific Method

To run a specific method on an image:

node cli.js run <api_key> <image_path> <method_name> [--display] [--confidence] [--option] [--color] [--country] [--to_compare]

Parameters:

  • api_key: Your API key for authentication.
  • image_path: Path to the image file.
  • method_name: The name of the method to execute.
  • display: Type of display for detection results (e.g., Boxes, Masks).
  • confidence: Confidence level for detection accuracy.
  • option: Specific processing options.
  • color: Color filter for object detection in "Masks" display type.
  • country: Country code for ID card processing.
  • to_compare: Path to an additional image file for face comparison.

As a Node.js Module

Example of using Visionlit in a Node.js script:

const Visionlit = require('visionlit');

(async () => {
    const key = "your_api_key_here";
    const vision = new Visionlit(key);
    try {
        const result = await vision.segmentImage("path/to/your/image.jpg");
        console.log(result);
    } catch (error) {
        console.error(error.message);
    }
})();


Keywords

FAQs

Package last updated on 01 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc