Lepton Maker Community / Forum / General discussion / Topics / Windows SDK does not work.

Windows SDK does not work.

Home Lepton and Windows Forums Lepton maker community General discussion Windows SDK does not work.

This topic contains 1 reply, has 1 voice, and was last updated by Profile photo of hironori hironori 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)

  • Author

    Posts

  • #16522

    Profile photo of hironori
    hironori

    Participant

    My native language is Japanese and I am translating into English with machine translation.
    Please forgive me if the grammar is incorrect.

    Starting this week, I started using Lepton 2.0, Pure Thermail mini, and the Lepton Windows SDK to create an application for measuring human body temperature.

    But I can’t set or get the video output format.
    Exception “Lepton.CCI.UnknownError” occurs when the method is executed.
    This error occurs with both CCI.vid.SetVideoOutputFormat and CCI.vid.SetVideoOutputFormat.

    Please take a look at the code I wrote.
    This is the program I actually run.
    I’m using Visual Studio 2017 Community, C#, and .net Framework 4.6.1.
    I am compiling in a 64bit environment, but the same error occurred in 32bit.


    using System;

    namespace UVC_Test0
    {
    class Program
    {
    static void Main(string[] args)
    {
    var devices = Lepton.CCI.GetDevices();
    if (devices.Count == 0)
    {
    Console.WriteLine("no Lepton CCI Devices...");
    }
    else
    {
    // get the first device
    var device = devices[0];
    var CCIHandle0 = device.Open();

    //get device Infomation
    Console.WriteLine("SDK Version=" + Lepton.CCI.SDKVersion);
    Console.WriteLine("device.Name=" + device.Name);
    Console.WriteLine("CameraUpTime=" + CCIHandle0.sys.GetCameraUpTime().ToString());
    string version = "";
    foreach (sbyte versionPart in CCIHandle0.sys.GetCustSerialNumber().value)
    {
    version += string.Format("{0:X2}", versionPart);
    }
    Console.WriteLine("CustSerialNumber=" + version);
    Console.WriteLine("SoftwareVersion=" + CCIHandle0.oem.GetSoftwareVersion().ToString());
    Console.WriteLine("AGC :" + CCIHandle0.agc.GetEnableState());
    Console.WriteLine("Radiometry:" + CCIHandle0.rad.GetEnableState().ToString());

    /* raise error this comment next code */
    CCIHandle0.vid.SetVideoOutputFormat(Lepton.CCI.Vid.VideoOutputFormat.RAW14);
    Console.WriteLine("VID Format:" + CCIHandle0.vid.GetVideoOutputFormat());

    }

    Console.ReadKey();
    }
    }
    }

    Please tell me what I should do to resolve this error.
    I would be very grateful to you if you could tell me any little hint.

    • This topic was modified 8 months ago by Profile photo of hironori hironori.
    • This topic was modified 8 months ago by Profile photo of hironori hironori.
    • This topic was modified 8 months ago by Profile photo of hironori hironori.

    #16526

    Profile photo of hironori
    hironori

    Participant

    It turns out that this defect does not occur with the combination of Lepton3.0, Pure Thermail mini, and Windows SDK.

    CCI.vid.SetVideoOutputFormat / CCI.vid.SetVideoOutputFormat is can not be used with Lepton 2.0?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.