This project was created out of the need to supply precise colour informaton to LED lighting instruments in order to perform cinematographic camera sensor calibration.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kevin Matz 2603bb7e79 grammer and spelling 2 years ago
.gitignore Initial commit 2 years ago
LICENSE Initial commit 2 years ago
README.md grammer and spelling 2 years ago
cameratest.py Alwasy print OpenCV version 2 years ago

README.md

cameratest

Sumary

This project was initially developed out of the need to supply precise colour information to LED lighting instruments for cinematographic camera sensor calibration.

The primary goal is to extract data from specially calibrated and encoded reference video files.

“Jaron Encoding” is a popular encoding technique where HSL data is directly encoded in the video as RGB pixels. Pixels experience o colourspace transforms. Jaron encoding specifies R=L G=H B=S.

Caveats

  • cameratest.py assumes the target lighting fixture is expecting IHS data. If using an Arri Skypanel, this corresponds to Mode 5.

  • Using the HSL colour model with 8-bit axis greatly restricts the color pallet. 16-bit axis are strongly recommended for HSL usage under normal conditions. The resolution is acceptable in this application, as the full range is not required for this calibration task.

  • cameratest.py assumes a directed broadcast address for the 2.0.0.0/8 netmask.

  • cameratest.py assumes a net of 0, a subUniv of 0, and a DMX start address of 1.

Usage

Run cameratest.py in a terminal.

cd my_working_directory
./cameratest.py my_calibrated_videofile.mov

Getting cameratest.py

The latest version of cameratest.py is available at http://company235.com/git/kevin/cameratest

From a terminal you can clone the git repository:

git clone http://company235.com/git/kevin/cameratest.git

or if you don’t have git installed:

curl -O http://company235.com/git/kevin/cameratest/raw/master/cameratest.py

Install dependencies

cameratest.py can run from any OS that supports Python3 and OpenCV3. cameratest.py was development on Mac OS 10.12.4

Mac

Working with and installing cameratest.py on the command line. Open Terminal.app and make yourself familier.

Homebrew

Install the latest version of the Homebrew package manager

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Add the Homebrew bin directories to your PATH variable.

echo "export PATH=/usr/local/bin:/usr/local/sbin:$PATH" >> ~/.profile

Python

Use homebrew to install Python 3

brew install python3

OpenCV

Use homebrew to install OpenCV 3

brew tap homebrew/science
brew install opencv3 --with-contrib --with-python3
brew link --force opencv3

Linux

Use your system package manager to install python, OpenCV, and their dependencies.

Windows

You’re going to have to google it. Good luck.