semvec/pypi-packages huggingface dataset:
mscviplib 2.211201.122
Python Wrapper for Microsoft Custom Vision Image Processing Library (mscviplib)
Requires Python: >=3.7

mscviplib
===========

An image preprocessing and augmentation module for use with CustomVision.ai machine learning models.
See [Custom Vision Service](https://docs.microsoft.com/en-us/azure/cognitive-services/custom-vision-service/) for background and details.


Installation
============

To install::

    pip install mscviplib

Note that currently, this module only works (and is only useful) on Linux.


Usage
=====

The main functions are: 
 - ``GetImageMetadata`` returns metadata object used with the subsequent preprocessing call.
 - ``PreprocessForInferenceAsTensor`` Performs image preprocessing for inference. Returns [Channel x Height x Width] normalized float tensor.
 - ``PreprocessForInferenceAsImage`` Performs image preprocessing for inference. Returns an image as RGB or BGR bytes.