Jump to content

Recommended Posts

Geschrieben

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)

grafik.thumb.png.823a64da36e851696e94d1730e5f3a40.png

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:

grafik.thumb.png.f060d547a2937a515596a7417b23bae1.png

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!

Geschrieben

Creating a new BrickletThermalImaging object each time is not necessary (and it might slow down your program over time).

The problem is that changing the configuration from temperature to high contrast (or back) can take several images. The lepton sensor has a sync mechanism and the Bricklet can not guarantee that it can sync within one image after the image transfer configuration is changed.

I think the easiest solution for you would be to just use the temperature image and to create the high contrast image from it yourself.

As an initial approximation you can scale the temperatures from temperature min/max in the image to 0-255 and show that (this is what the Brick Viewer does if you choose the temperature image).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...