mabuchilab / Instrumental

Python-based instrumentation library from the Mabuchi Lab.
http://instrumental-lib.readthedocs.org/
GNU General Public License v3.0
117 stars 77 forks source link

[cameras.uc480] Unable to change to color mode of my camera #143

Open ClassicFan1013 opened 2 years ago

ClassicFan1013 commented 2 years ago

Hi, previously I was using this package for a 8-bit thorlab camera and it worked perfectly. Thanks. But recently I was trying to another 12-bit cam. But it seems that the images acquired is still 8-bit. I noticed there's a property named color_mode but it seems that I cannot modify it. Is there any quick solutions for acquiring 12-bit images?

Best regards

natezb commented 2 years ago

I just looked and the Instrumental code does not yet support 12-bit grayscale, although I think it would be pretty quick to add. I will try to take a look at adding this tonight.

ClassicFan1013 commented 2 years ago

Thank you so much!

natezb commented 2 years ago

I just pushed some changes to a new branch called uc480-12bit. I don't have the hardware to test these changes, so you'll have to try it out and let me know how it goes.

You'll want to uninstall your current Instrumental package, then clone the repo from github, make sure you've switched to the uc480-12bit branch, and install from there.

natezb commented 2 years ago

Were you ever able to test this out?