Hikmicro Sdk 【2024】

// 3. Start real-time thermal preview HIK_StartThermalPreview(hDevice, callback_FrameReady);

if (hDevice == NULL) printf("Device not found. Check driver installation.\n"); return -1; hikmicro sdk

// 6. Cleanup HIK_StopPreview(hDevice); HIK_DisconnectDevice(hDevice); HIK_SDK_Cleanup(); The most complex part is decoding the raw buffer. A standard 8-bit video frame is 0-255 (grayscale). A Hikmicro 16-bit raw frame is 0-65,535. To convert this to temperature: // 6. Cleanup HIK_StopPreview(hDevice)

// 5. Main loop: Poll for temperature at center pixel while (running) float temp = HIK_GetSpotTemperature(hDevice, 320, 240); // Center of 640x480 sensor printf("Center Temp: %.2f C\n", temp); Sleep(100); hikmicro sdk