Computer Vision Library
Overview

FivekoGFX is a tiny web-oriented Image Processing Library for HTML5 apps and sites. Most of FivekoGFX algorithms are GPU oriented using OpenGL shaders.

Features

Demo App Preview

Getting started

Loading and installing

Browser

Download the whole fivekogfx or just the **/src/fivekogfx.min.js** and include it into your HTML5 proect e.g.:

<script src="fivekogfx.min.js"></script>

How to use the FivekoGFX API

Gaussian blur:

Example of Gaussian filter over a canvas image with standart deviation of 2.0

var fivekogfx = new FivekoGFX();
fivekogfx.load(canvas);
fivekogfx.gauss(2.0); // e.g. Sigma=2.0
fivekogfx.draw(canvas);

Convolution

Example of Discrete Gaussian blur approximation with standard deviation of 1.0

var fivekogfx = new FivekoGFX();
fivekogfx.load(canvas);
fivekogfx.conv1d([1, 4, 7, 4, 1]); // Blur filter
fivekogfx.draw(canvas);

Color space conversions

Example of RGB to Grayscale conversion

var fivekogfx = new FivekoGFX();
fivekogfx.load(canvas);
fivekogfx.rgb2gray();
fivekogfx.draw(canvas);