Skip to content

deephealthproject/pyecvl

Repository files navigation

 

Build Status

PyECVL is a Python wrapper for ECVL, the European Computer Vision Library.

Here is a short example of what you can do with PyECVL:

import numpy as np
import pyecvl.ecvl as ecvl

def inc_brightness(img, rate):
    a = np.array(img, copy=False)
    max_val = np.iinfo(a.dtype).max
    a[a > max_val - rate] = max_val
    a[a <= max_val - rate] += rate

def main():
    img = ecvl.ImRead("test.jpg")
    inc_brightness(img, 10)
    ecvl.ImWrite("test_mod.jpg", img)

if __name__ == "__main__":
    main()

The PyECVL documentation is available at https://deephealthproject.github.io/pyecvl.

Quick links: