I have a Panatone Huey, a control calibration probe (the device that you attach to the monitor and it gives you color readings). I want to get readings from a device in Python.
I have never written such a device driver before, I'm not sure where to start.
I found two open C / C ++ projects that interact with Heuy - ArgyllCMS and mcalib .
ArgyllCMS comes with a command spotreadthat returns data from the device, although it only works as an interactive command line tool, so running it through subprocesswill not (easily) work.
The code used by ArgyllCMS to communicate with the device is located in spectro / huey.c
I havenβt tried (only found it when writing this question), but mcalib contains much less code, basically just heuy.cpp - however it has an alarming amount of comments FIXMEand incomplete methods, and the code seems to have been automatically generated (useless variable names)
There seem to be three options:
- Change
spotreadto work without any interactive requests, call it viasubprocess - Create a C-based Python module around
huey.corhuey.cpp - Reimplement the interface using something like PyUSB
Python, PyUSB, , API Python C? - C, PyUSB?