Skip to main content

A Python library implementing Visionlit computer vision methods with model access.

Project description

Visionlit Package

Overview

Visionlit is a Python package designed for advanced computer vision tasks. It provides a robust command-line interface and can be seamlessly integrated into Python scripts 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:

pip install visionlit

Usage

Command Line Interface

List Available Methods

To display all executable methods:

visionlit --list

Execute Specific Method

To run a specific method on an image:

visionlit <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 Python Module

Example of using Visionlit in a Python script:

import os
import sys
from visionlit import Visionlit


print(dir(Visionlit))
if __name__ == "__main__":
    key = "56daa10w355169f608ced4b179286efdddd6860634h239jf61f6a38f20b98"
    vision = Visionlit(key)
    try:
        result = vision.segment_image("path to image or directory")
        print(result)
    except ValueError as e:
        print(e)

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

visionlit-1.0.11.tar.gz (295.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

visionlit-1.0.11-cp38-cp38-macosx_10_9_x86_64.whl (302.2 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

File details

Details for the file visionlit-1.0.11.tar.gz.

File metadata

  • Download URL: visionlit-1.0.11.tar.gz
  • Upload date:
  • Size: 295.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.8

File hashes

Hashes for visionlit-1.0.11.tar.gz
Algorithm Hash digest
SHA256 5ec8feb34e6ff6881fe9751349bf8684adccc3ef26f102522d92cd22a358d9be
MD5 d54786ffa372e8e05f65dacc71b59ffb
BLAKE2b-256 82d5a0eb1c54e5c2580ba534a11fa38082d068bfadb490c73c898f193d19efca

See more details on using hashes here.

File details

Details for the file visionlit-1.0.11-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for visionlit-1.0.11-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 780a0c29a294e1cb6000ba63df4bc9c1006756a412734109f3fb81a7438931b7
MD5 4d35057705eb6dab620aef2cd283e6f8
BLAKE2b-256 4d336ddbe6aabdf1e360700aef6b39d93b8b1d360daeaadf48e42ef86fda22ee

See more details on using hashes here.

Supported by

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