Jump to content

Thermal Imaging Bricklet - falsche Werte


Recommended Posts

Ich versuche einfach nur die tatsächlichen Temperaturwerte der Kamera in C# abzugreifen, aber aus irgendeinem Grund zeigen sowohl das TemperatureImage-Array als auch die Min/Max-Statistik nur Werte im Bereich 28-30°C an, egal ob die Kamera auf eine 16 Grad kalte Außenwand oder eine 50 Grad heiße Kaffeetasse gerichtet ist. In BrickV kommen die Werte dagegen richtig raus. Die verfügbaren Code-Beispiele beziehen sich leider nur auf den high contrast mode. Daher bin ich nicht ganz sicher, ob mein Setup so richtig ist:

 

void init() {
    ipcon = new IPConnection();
    ti = new BrickletThermalImaging("Jt4", ipcon);
    ipcon.Connect("localhost", 4223);

    ti.SetImageTransferConfig(
       BrickletThermalImaging.IMAGE_TRANSFER_CALLBACK_TEMPERATURE_IMAGE);
    ti.SetSpotmeterConfig(new byte[]{0, 0, 79, 59});			 
    ti.SetResolution(BrickletThermalImaging.RESOLUTION_0_TO_655_KELVIN);
    ti.TemperatureImageCallback += TemperatureImageCallback;
}

void TemperatureImageCallback(BrickletThermalImaging sender, int[] image) {
    int[] temperatureImage = image;
    int[] stats; int[] temp; byte res; byte ffcStatus; bool[] warn;
    sender.GetStatistics(out stats, out temp, out res, out ffcStatus, out warn);
    //image + stats Werte immer ca 28000-30000
}

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...