LJMUAstroecology / flirpy

Python library to interact with FLIR camera cores
Other
184 stars 54 forks source link

Boson: Disable all Non-Uniformity Correction #46

Open vishwa91 opened 3 years ago

vishwa91 commented 3 years ago

First, thanks a ton for the wonderful codebase -- made my life so much easier.

I wanted to know if it is possible to disable all corrections on the Boson 640 camera? I want to get raw data for performing custom NUC and hence the question.

Thank you.

jveitchmichaelis commented 3 years ago

Hiya, this is probably possible. You'd likely need multiple commands because there are several stages of correction that the camera performs by default (and I'm not sure which you'd want to turn off for your application). It's a matter of implementing the commands defined in the Boson Software idd, but that's fairly easy if you know which. We'd need to add the relevant commands to the Boson class - ultimately it'd be good to implement the entire camera interface at some point...

vishwa91 commented 3 years ago

I agree with the multi-step command, as the GUI requires switching off several options. I will look into the Boson commands reference and try them to this codebase. Thanks!

jveitchmichaelis commented 3 years ago

Yes, each command should be a separate API call. If you get them working, please consider submitting a pull request (ideally also with a test case for each command- so you should write a set/getfunction for each). Otherwise if you have any questions about implementation, feel free to ask.

vishwa91 commented 3 years ago

I will follow the same template as the code base, and add test functions. Once I test on the Boson camera I have, I will submit a pull request. Thanks for the support!

nrwiederhold commented 2 years ago

What is the status of this issue? Do these options exist in the code base now?

jveitchmichaelis commented 2 years ago

No PR was submitted, but you're welcome to add it - it should be quite easy to do, but I don't have access to a Boson at the moment. If you can tell me which things you want to disable, I can just implement the commands from the datasheet and you can let me know if it works.

socome commented 1 year ago

@jveitchmichaelis Could you teach me how to turn off the NUC on boson camera .? I will try and PR about that. I want to turn off the NUC because of image block when NUC is running. In other words, I want to get raw image without the pause caused by NUC.

jveitchmichaelis commented 1 year ago

Do you mean flat fielding? This causes a slight pause when the camera takes a calibration image. This is different to NUC.

Try the set_ffc_manual command - that will disable the pause but you'll get noisy images over time unless you keep the camera at a fixed temp.

socome commented 1 year ago

@jveitchmichaelis Oh .. When i read this post, i think NUC is main reason of thermal image sometimes freezes and the camera makes a clicking noise. However, do you mean this problem caused by FFC..? I will try to use the "set_ffc_manual" function. Thank you!

jveitchmichaelis commented 1 year ago

Ah I think they use it interchangeably. From the article:

It is also referred to as an FFC (flat field correction

Usually I’ve seen NUC used to refer to the various other settings the camera uses to correct the image (see the beginning of this thread).