Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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

Main Fucntions

Function Desciption
read (file_name) Reads an image from "file_name"
save (file_name, image) Saves the "image" array to "file_name"
show (image) Displays the "image" array by matplotlib
show (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.read('samples/0512.pfm')
cv_io.show(image)
cv_io.save('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.

Files for cv-io, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size cv_io-0.0.1-py3-none-any.whl (12.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size cv_io-0.0.1.tar.gz (11.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page