Skip to main content

A collection of I/O scripts for computer vision formats.

Project description

Computer Vision I/O

This python package, Computer Vision I/O which is knwon as cv_io, is a collection of existing python scripts which provides a set of I/O functions for normal and irregular image formats in computer vision.

File Format Support

File format Desciption
*.png, *.jpg, ... All normal images
*.flo Middleburry optical flow
*.dpt Middleburry floating point depth
*.pfm Freiburg floating point disparity
*.exr OpenXR hdr format
*.jxr MicroSoft JPEG-XR hdr format

Main Fucntions

Function Desciption
imread (file_name) Reads an image from "file_name"
imwrite (file_name, image) Saves the "image" array to "file_name"
imshow (image) Displays the "image" array by matplotlib
imshow (file_name) Displays an image file from "file_name"

Requirements

Package requirement are listed in requirements.txt file and it will be installed through pip isntallation. If you clone the repository you may install requirements manually:

pip install -r requirements.txt

Install as a Python Package

You can also download and install the Simple Image Viewer as a python package by:

python -m pip install cv_io

or simply

pip install cv_io

Then you can simply import it in a python code and use it as follows:

import cv_io
image = cv_io.imread('samples/0512.pfm')
cv_io.imshow(image)
cv_io.imwrite('test.pfm', image)

You also have acess to the original libraries like sintel_io through the cv_io as a sub-module:

import cv_io
image = cv_io.sintel_io.depth_read ('samples/frame_0020.dpt')
cv_io.sintel_io.depth_write('test.dpt', image)

Copyright © 2020 Saeid Hosseinipoor. Released under the MIT License.

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

cv_io-1.1.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

cv_io-1.1.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file cv_io-1.1.0.tar.gz.

File metadata

  • Download URL: cv_io-1.1.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for cv_io-1.1.0.tar.gz
Algorithm Hash digest
SHA256 fc70cf903b68aece4fc53d661f40c4d619b7b89f48fedf9df9f039a606f1e31b
MD5 f321fefea50ceb7ce974fd6782ed57f7
BLAKE2b-256 100b589921d6b458b9af2b5133cff4a52beb5c52ad0037bd5c7d7c81e47480c1

See more details on using hashes here.

File details

Details for the file cv_io-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: cv_io-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for cv_io-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc843478ec563c9c0a257c4061de888798fe1c66db00ccdbe018078ffb81cf4c
MD5 62c128c4a27a2580417a436cc19bdf28
BLAKE2b-256 05ac67a5aad76534defce3edd280885748c185fcc2201c897b5c59eb6873d892

See more details on using hashes here.

Supported by

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