Giter VIP home page Giter VIP logo

computer-vision-io's Introduction

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.

computer-vision-io's People

Contributors

saeid-h avatar

Stargazers

Hans Alemão avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.