Skip to main content

EMVA1288 reference implementation

Project description


This is the reference implementation for the EMVA1288 Standard for Measurement and Presentation of Specifications for Machine Vision Sensors and Cameras.

Please visit Emva1288 Website for information and latest releases of the standard.


For inexperienced windows users it is recommended to use a prepackaged python distribution that contains the required packages. One excellent option for Windows users is Anaconda

Once the python environment is installed just run pip install emva1288


If you are in a rush there is one utility class that allows to do the full process in a very simple way

from emva1288 import Emva1288

# Load your data descriptor file
e = Emva1288(filename)
# Print the results
# Plot the graphics

If you are interested keep reading.

The code is dvidided in 7 parts


This class takes an EMVA1288 descriptor file and loads its content into a python dictionary.

An EMVA1288 descriptor file is a file that contains the description of an EMVA1288 test including exposure times, photon count and corresponding images

Example of a descriptor file


This class takes a dictionary (product of parser.ParseEmvaDescriptorFile). Load the related images and reduce it’s data to the minimum possible, preserving all relevant image data in as integers. The resulting data is a Python dictionary.

Example of the reduced data


This class takes a dictionary with image data (product of loader.LoadImageData), and transforms it into data that can be used for the EMVA1288 computations. It is important to note, that this is separate from LoadImageData because this step, produces float values that are not easily transportable (db, json, etc…) without loosing accuracy.


This class takes the data from data.Data1288 and compute the actual EMVA1288 values.


This class takes a results.Results1288 object and produces all the plots needed to create a reference datasheet of the EMVA1288 test


This class creates a directory with all the files needed to compile a latex report.

This is a function that returns a named tuple to fill with the marketing data needed for the report


Function that returns a named tuple serving as a place holder for all the data needed for an operation point in the report


To use the code, you need to have a set of images that correspond to an EMVA1288 test. There are some sample image sets provided by the standard development group. Example datasets.

Download one or all of these datasets, extract its content, and use them as input in the examples shown below.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
emva1288-0.2.0.tar.gz (178.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page