Skip to main content

CVPy - SAS Viya Computer Vision API for Python

Overview

CVPy is a Python package that makes SAS image analytics more accessible to Python users in a variety of different ways. This high-level Python library provides helpful APIs that assist with the processing, analyzing, and visualization of images. This allows users of the image and biomedimage action set in SAS Viya to have more flexibilty when working in Python.

Currently available within CVPy are visualization APIs that allow users to easily be able to move images out of CAS and into common open source tools such as Mayavi and Matplotlib. These APIs streamline the visualization of image data fetched from a CAS table and can assist with further image analysis.

Prerequisites

  • Python version 3 or greater is required
  • Install SAS Scripting Wrapper for Analytics Transfer (SWAT) for Python using pip install swat or conda install -c sas-institute swat
  • Access to a SAS Viya 3.5 environment with Visual Data Mining and Machine Learning (VDMML) is required
  • A user login to your SAS Viya back-end is required. See your system administrator for details if you do not have a SAS Viya account.
  • Install Mayavi for scientific data visualization in Python

Create a New Python Environment [Optional]

Follow the steps below to create a new Python 3.8 environment for your CVPy installation named "cvpy".

conda create --name cvpy python=3.8

activate cvpy

Mayavi Installation

Mayavi is a heavy, complex package that is required by CVPy. If you do not already have Mayavi installed, follow the steps below to install it.

pip install mayavi

Install PyQt, a GUI toolkit needed to run Mayavi.

pip install PyQt5

CVPy Installation

To install CVPy, use the following command:

pip install sas-cvpy

Install and Run Jupyter Notebook

To install and start Jupyter Notebook, run the following steps:

pip install jupyter

jupyter notebook

Contributing

We welcome your contributions! Please read CONTRIBUTING.md for details on how to submit contributions to this project.

License

This project is licensed under the Apache 2.0 License.

Additional Resources

Metadata

Release files for sas-cvpy 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sas-cvpy 1.1.1
File Size Uploaded Provenance Actions
sas-cvpy-1.1.1.tar.gz 43.9 kB Without provenance Details for sas-cvpy-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sas-cvpy 1.1.1
File Interpreter ABI Platform Actions
sas_cvpy-1.1.1-py3-none-any.whl Python 3 none any Details for sas_cvpy-1.1.1-py3-none-any.whl

Total release size: 103.5 kB

Release files / sas-cvpy-1.1.1.tar.gz

Download URL sas-cvpy-1.1.1.tar.gz
Size 43.9 kB
Tags Source
SHA-256 checksum
How to use checksums
70f1e2ca0eab66813e36df8891a218aa35d04a225352834882a385759da0a154
BLAKE2b-256 checksum
How to use checksums
77b4204aa2e2e9d829e9e390a7822840f3a1599a435fb8a89203e4f060efbaa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / sas_cvpy-1.1.1-py3-none-any.whl

Download URL sas_cvpy-1.1.1-py3-none-any.whl
Size 59.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
145874ecd2fbe01d51bdcc7a4887ea0e6f2becb103f0f2f3e49140ed515255b5
BLAKE2b-256 checksum
How to use checksums
3edfd95137948a2b9c847d62e3f60fc62a7664a5b27dad33f7b4e33bb5196936
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for sas-cvpy 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page