Images for the Machine Vision Toolbox for Python.
Project description
Images for Machine Vision Toolbox
This package includes images associated with the Machine Vision Toolbox for Python (MVTB-P).
Rationale
The images are provided as a separate package to work around disk space limitations on PyPI. Including these images with the MVTB code adds 90MB to every release, which will blow the PyPI limit quite quickly. Since the image set don't change very much, it makes sense for it to be a standalone package.
Package contents
This package includes the following images
Installing the package
You don't need to explicitly install this package, it happens automatically when you when you install MVTB-P
pip install machinevisiontoolbox-python
since it is a dependency.
Accessing these images from MVTB
When you load a file using MVTB-P
import machinevisiontoolbox
myimage = Image("monalisa.png")
the file is looked for at the given path (relative to the current working directory if it's a relative path), and if not found it is looked for in this package.
Accessing these images from your own code
pip
will install the package at some obscure place in your filesystem, but the path to any of the images can be easily found:
from importlib import resources
try:
with resources.path("mvtbimages", "monalisa.png") as f:
# f is the path to the image
Complete image library
A larger set (350MB) of images is all available in the package mvtb-images-big
which includes several images sequences. To install this
pip install machinevisiontoolbox-python[bigimage]
If you want to "upgrade" the images without reinstalling MVTB then do the following
pip uninstall mvtb-images
pip install mvtb-images-big
The package in each case is called mvtbimages
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file mvtb-images-1.1.tar.gz
.
File metadata
- Download URL: mvtb-images-1.1.tar.gz
- Upload date:
- Size: 90.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/49.6.0.post20201009 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 393d676e654f850275e322b3635564da3570290a12914278771aefd507c90ea9 |
|
MD5 | 7e530f648521451bb3b16beff450a836 |
|
BLAKE2b-256 | 053c333d0acf1ae93e90cbecfb5d17ae17eb5b2b959e2153481ff4da8cf49f59 |