Hey,
I am using a Thermal Imaging Bricklet.
I'm currently trying to get the temperature and the contrast image at the same time. It says in the documentation that it's not possible (from what I understood)
I have tried using both (TEMPERATURE IMAGE/ HIGH CONTRAST IMAGE) one after another, each time creating a new BrickletThermalImage but it didn't work.
I also tried to make a variation, as following:
if counter % 2 == 0: //Even Number ==> get temperature image
ti_temp = BrickletThermalImaging(UID, ipcon)
ti_temp.set_image_transfer_config(ti_temp.IMAGE_TRANSFER_MANUAL_TEMPERATURE_IMAGE)
ti_temp.set_spotmeter_config([0, 0, 79, 59])
ti_temp.set_resolution(ti_temp.RESOLUTION_0_TO_655_KELVIN)
temp_data = ti_temp.get_temperature_image()
else: //Odd number ==> get temperature image
ti_temp = BrickletThermalImaging(UID, ipcon)
ti_temp.set_image_transfer_config(ti_temp.IMAGE_TRANSFER_MANUAL_HIGH_CONTRAST_IMAGE)
image_data = ti_temp.get_high_contrast_image()
This also does not seem to work, I get the following results:
I manage to get the correct results for temperatures the first time, but afterwards it seems I only get the image data (or some values close to it) instead of the temperature data. If I leave the *else* part from the code, I always get the temperature data perfectly.
Since I want to have the image and the corresponding temperatures to it at the same time, is there a way to do that? Or to achieve something closer to that?
Thank you very much!