coolirr is a standalone, cross-platform tool for Nikon Coolscan scanners (e.g. LS-50, LS-4000, LS-5000) to measure irregularity over USB. It accesses the raw uncalibrated CCD data directly to evaluate optical alignment and LED health.
Nikon's own inspection software allows for testing irregularity using a special slide chart. This tool mimicks the test, the measurement values are adjusted to not require that slide.
Use this tool to:
- Calibrate LED unit. Note: Unlike Nikon's tool, the unit will move during the and requires fastening the screw before testing again.
- Identify failure in the optical path. If irregularity is about 42% your scanner's optical path is blocked or degraded. This can range from LED unit failure, misaligned LED unit or failure in the CCD path. Either CCD itself failed or the flex cable connecting it.
The tool requires the MA-21 to be inserted at the time of measurement.
This tool wouldn't be possible without the dedicated work from:
- https://gitlab.com/sane-project/backends
- https://github.com/kosma/coolscan-mods
- https://github.com/kevihiiin/Nikon-Coolscan-RE
- Python 3.7+
On macOS, you need to install the libusb dependency. The easiest way is via Homebrew:
# Install Homebrew if you don't have it (https://brew.sh)
brew install libusb
# Install the Python usb dependency
pip3 install pyusbOn Windows, Python needs a generic USB driver to communicate with the scanner. The stock Nikon or Vuescan drivers might prevent raw libusb access.
- Download and run Zadig.
- Connect and turn on your scanner.
- In Zadig, select
Options -> List All Devices. - Select your Nikon scanner from the dropdown (e.g., "LS-50 ED").
- Choose WinUSB as the target driver and click Replace Driver.
- Open Command Prompt or PowerShell and install
pyusb:
pip install pyusb(Note: If you want to use the scanner with Nikon Scan or Vuescan again, you will need to uninstall the WinUSB driver from Device Manager and reinstall the original driver).
Ensure your MA-21 adapter is inserted and empty. No other adapters are supported by this diagnostic.
Simply run the script:
python coolirr.pyThe script will query the scanner, perform a one-line moving scan, and print a table with the metrics for the Red, Green, Blue, and Infrared channels.