groupgets / GetThermal

Cross-platform USB thermal camera viewer
MIT License
236 stars 94 forks source link

Missing radiometry from Lepton 3.0 on Ubuntu #54

Closed kubabuda closed 12 months ago

kubabuda commented 1 year ago

Hello, I am using Lepton 3.0 with GetThermal on Ubuntu. Camera is correctly working as UVC when tested via browser on https://davidwalsh.name/demo/camera.php On latest fw:v1.3.0, GetThermal was not displaying any video feed, only a lot of UVC_GetAttribute failed: -9 in console After I downgraded firmware from v1.3.0 to v1.2.2, video feed is present but radiometric range is not displayed: GetThermal v0 1 4

This is what GEtThermal app is logging to console:

$ ./GetThermal-v0.1.3-x86_64-Linux.AppImage 
UVC initialized
Device found
Device opened
DEVICE CONFIGURATION (1e4e:0100/005e0033-5107-3036-3331-303200000000) ---
Status: idle
VideoControl:
    bcdUVC: 0x0100
VideoStreaming(1):
    bEndpointAddress: 129
    Formats:
    UncompressedFormat(1)
          bits per pixel: 16
          GUID: 5559565900001000800000aa00389b71 (UYVY)
          default frame: 1
          aspect ratio: 0x0
          interlace flags: 00
          copy protect: 00
            FrameDescriptor(1)
              capabilities: 02
              size: 160x120
              bit rate: 2764800-2764800
              max frame size: 38400
              default interval: 1/9
              interval[0]: 1/9
    UncompressedFormat(2)
          bits per pixel: 16
          GUID: 5931362000001000800000aa00389b71 (Y16 )
          default frame: 1
          aspect ratio: 0x0
          interlace flags: 00
          copy protect: 00
            FrameDescriptor(1)
              capabilities: 02
              size: 160x120
              bit rate: 2764800-2764800
              max frame size: 38400
              default interval: 1/9
              interval[0]: 1/9
            FrameDescriptor(2)
              capabilities: 02
              size: 160x122
              bit rate: 2810880-2810880
              max frame size: 39040
              default interval: 1/9
              interval[0]: 1/9
    UncompressedFormat(3)
          bits per pixel: 8
          GUID: 5938202000001000800000aa00389b71 (Y8  )
          default frame: 1
          aspect ratio: 0x0
          interlace flags: 00
          copy protect: 00
            FrameDescriptor(1)
              capabilities: 02
              size: 160x120
              bit rate: 1382400-1382400
              max frame size: 19200
              default interval: 1/9
              interval[0]: 1/9
    UncompressedFormat(4)
          bits per pixel: 16
          GUID: 5247425000001000800000aa00389b71 (RGBP)
          default frame: 1
          aspect ratio: 0x0
          interlace flags: 00
          copy protect: 00
            FrameDescriptor(1)
              capabilities: 02
              size: 160x120
              bit rate: 2764800-2764800
              max frame size: 38400
              default interval: 1/9
              interval[0]: 1/9
    UncompressedFormat(5)
          bits per pixel: 24
          GUID: 7deb36e44f52ce119f530020af0ba770 (}�6�OR��S)
          default frame: 1
          aspect ratio: 0x0
          interlace flags: 00
          copy protect: 00
            FrameDescriptor(1)
              capabilities: 02
              size: 160x120
              bit rate: 4147200-4147200
              max frame size: 57600
              default interval: 1/9
              interval[0]: 1/9
END DEVICE CONFIGURATION
Initializing lepton SDK with UVC backend...
Using GroupGets PureThermal (fw:v1.2.2) with firmware 005e0033-5107-3036-3331-303200000000
OK
Found extension unit ID 3, controls: 000fffff, GUID: 70 74 31 2d 6c 65 70 2d 61 67 63 2d 30 30 30 30
Found extension unit ID 4, controls: 7fffffbf, GUID: 70 74 31 2d 6c 65 70 2d 6f 65 6d 2d 30 30 30 30
Found extension unit ID 5, controls: 3ffcffc81ffffff, GUID: 70 74 31 2d 6c 65 70 2d 72 61 64 2d 30 30 30 30
Found extension unit ID 6, controls: 007fffff, GUID: 70 74 31 2d 6c 65 70 2d 73 79 73 2d 30 30 30 30
Found extension unit ID 7, controls: 00003fff, GUID: 70 74 31 2d 6c 65 70 2d 76 69 64 2d 30 30 30 30
Found extension unit ID 21, controls: 07ff9ff9, GUID: 70 74 31 2d 6c 65 70 2d 72 61 64 32 30 30 30 30
Found extension unit ID 254, controls: 0000003f, GUID: 70 74 31 2d 6c 65 70 2d 63 75 73 74 30 30 30 30
bmHint: 0000
bFormatIndex: 5
bFrameIndex: 1
dwFrameInterval: 1111111
wKeyFrameRate: 0
wPFrameRate: 0
wCompQuality: 0
wCompWindowSize: 0
wDelay: 0
dwMaxVideoFrameSize: 57600
dwMaxPayloadTransferSize: 962
bInterfaceNumber: 1
UVC_GetAttribute failed: -9Estimated / selected altsetting bandwith : 18 / 962. 
Streaming...
QQmlExpression: Expression qrc:/ViewerForm.ui.qml:69:22 depends on non-NOTIFYable properties:
    LeptonVariation::supportsRadiometry
QQmlExpression: Expression qrc:/ViewerForm.ui.qml:53:30 depends on non-NOTIFYable properties:
    LeptonVariation::supportsRadiometry
UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9Surface set. Supported formats: 18 19 22 23 20 21 3 1 10 8 5
Surface supports format 3 width 160 height 120QQmlExpression: Expression qrc:/lepton/InfoControls.qml:51:23 depends on non-NOTIFYable properties:
    LeptonVariation::ptFirmwareVersion
QQmlExpression: Expression qrc:/lepton/InfoControls.qml:46:23 depends on non-NOTIFYable properties:
    LeptonVariation::oemDspSoftwareVersion
QQmlExpression: Expression qrc:/lepton/InfoControls.qml:41:23 depends on non-NOTIFYable properties:
    LeptonVariation::oemGppSoftwareVersion
QQmlExpression: Expression qrc:/lepton/InfoControls.qml:36:23 depends on non-NOTIFYable properties:
    LeptonVariation::sysFlirSerialNumber
QQmlExpression: Expression qrc:/lepton/InfoControls.qml:31:23 depends on non-NOTIFYable properties:
    LeptonVariation::oemFlirPartNumber
qml: model: LeptonVariation(0xac8740, "LeptonVariation") property: agcHeqNormalizationFactor value: 1
qml: model: LeptonVariation(0xac8740, "LeptonVariation") property: agcHeqEmptyCount value: 2
qml: model: LeptonVariation(0xac8740, "LeptonVariation") property: agcHeqMidPoint value: 128
qml: model: LeptonVariation(0xac8740, "LeptonVariation") property: agcHeqBinExtension value: 0
qml: model: LeptonVariation(0xac8740, "LeptonVariation") property: agcHeqClipLimitLow value: 512
qml: model: LeptonVariation(0xac8740, "LeptonVariation") property: agcHeqClipLimitHigh value: 4800
qml: model: LeptonVariation(0xac8740, "LeptonVariation") property: agcHeqMaxGain value: 1
qml: model: LeptonVariation(0xac8740, "LeptonVariation") property: agcHeqDampingFactor value: 64
qml: model: LeptonVariation(0xac8740, "LeptonVariation") property: agcLinearDampeningFactor value: 100
qml: model: LeptonVariation(0xac8740, "LeptonVariation") property: agcLinearMidPoint value: 128
qml: model: LeptonVariation(0xac8740, "LeptonVariation") property: agcLinearMaxGain value: 1
qml: model: LeptonVariation(0xac8740, "LeptonVariation") property: agcLinearHistogramClipPercent value: 0
qml: model: LeptonVariation(0xac8740, "LeptonVariation") property: agcLinearHistogramTailSize value: 0
QQmlExpression: Expression qrc:/lepton/AgcControls.qml:11:14 depends on non-NOTIFYable properties:
    LeptonVariation::supportsRadiometry
QQmlExpression: Expression qrc:/lepton/VidControls.qml:69:22 depends on non-NOTIFYable properties:
    LeptonVariation::supportsRadiometry
QQmlExpression: Expression qrc:/lepton/VidControls.qml:62:22 depends on non-NOTIFYable properties:
    LeptonVariation::supportsRadiometry
QQmlExpression: Expression qrc:/lepton/VidControls.qml:47:22 depends on non-NOTIFYable properties:
    LeptonVariation::supportsHwPseudoColor
    LeptonVariation::supportsRadiometry
QQmlExpression: Expression qrc:/lepton/VidControls.qml:26:22 depends on non-NOTIFYable properties:
    LeptonVariation::supportsHwPseudoColor
    LeptonVariation::supportsRadiometry
UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_SetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9UVC_GetAttribute failed: -9Done streaming.
Device closed
UVC exited

I have that on both latest releases: GetThermal-v0.1.3-x86_64-Linux.AppImageand GetThermal-v0.1.4-x86_64-Linux.AppImage