Skip to content

JS package to perform (semi)-automatic color calibration

License

Notifications You must be signed in to change notification settings

kjappelbaum/colorcal

Repository files navigation

colorcal

NPM version build status npm download

Calibrate the color of images using a color calibration card on the same photo.

example image

The approach is semi-automatic. After picking the edges (A, B, C, D---always starting with the black outer edge and then moving to white, turquoise and blue for the SyderChecker24) of the color calibration card, the rest should happen automatically.

RGB values copied from a Github repo and not verified so far.

Open source implementation of Color calibration of digital images for agriculture and other applications to be used directly in ELN.

The code can deal with moderate tilt and rotation of the card (as shown in the example image). Rotation should be much more robust than tilt, hence please try to shoot your images such that the plane of the camera and the card are parallel to each other.

Installation

$ npm i colorcal

Usage

import library from 'colorcal';

const result = library(args);
// result is ...

License

MIT

About

JS package to perform (semi)-automatic color calibration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published