thermal sdk output file is unreadable

Completed

Comments

3 comments

  • DJI Developer Support
    1. How you create the .raw file. Are you using the -a extract command? 2. We usually use imageJ plugin to open the .raw file. 3. The raw iamge is generated by the thermal chipset core, it is not very useable for a terminal user.
    0
    Comment actions Permalink
  • mahmud ashrafizaadeh

    Hi. Thank you for your reply. Here is the command that I use:

    ./dji_irp -s ../../../../dataset/H20T/DJI_0001_R.JPG -a extract -o extract.raw

    and here is the output I get:

    IRP API version number : 0x13
    DIRP API magic version  : d4c7dea
    R-JPEG file path : ../../../../dataset/H20T/DJI_0001_R.JPG
    R-JPEG version information
    R-JPEG version : 0x1
    header version : 0x103
    curve LUT version : 0x1
    R-JPEG resolution size
    image  width : 640
    image height : 512
    Run action 0
    Save image file as : extract.raw
    Test done with return code 0

     

    The extract.raw file is created and looking at the output, I don't see any error! But I cannot open and view the extract.raw file. I have tried to open it with ratherapy, digikam and darktable.

    Here is the output I get after using darktable to open the extract.raw file (> darktable extract.raw)

     

    [exiv2 dt_exif_read] /home/mahmud/Downloads/utility/bin/linux/release_x64/extract.raw: /home/mahmud/Downloads/
    utility/bin/linux/release_x64/extract.raw: The file contains data of an unknown image type
    [rawspeed] (extract.raw) virtual std::unique_ptr<rawspeed::RawDecoder> rawspeed::RawParser::getDecoder(const r
    awspeed::CameraMetaData*), line 91: No decoder found. Sorry.
    [exiv2 dt_exif_get_thumbnail] /home/mahmud/Downloads/utility/bin/linux/release_x64/extract.raw: /home/mahmud/D
    ownloads/utility/bin/linux/release_x64/extract.raw: The file contains data of an unknown image type
    [temperature] failed to read camera white balance information from `extract.raw'!
    [exiv2 dt_exif_get_thumbnail] /home/mahmud/Downloads/utility/bin/linux/release_x64/measure.raw: /home/mahmud/D
    ownloads/utility/bin/linux/release_x64/measure.raw: The file contains data of an unknown image type
    [exiv2 dt_exif_get_thumbnail] /home/mahmud/Downloads/utility/bin/linux/release_x64/measure3.raw: /home/mahmud/
    Downloads/utility/bin/linux/release_x64/measure3.raw: The file contains data of an unknown image type
    [rawspeed] (measure.raw) virtual std::unique_ptr<rawspeed::RawDecoder> rawspeed::RawParser::getDecoder(const r
    awspeed::CameraMetaData*), line 91: No decoder found. Sorry.
    [rawspeed] (measure3.raw) virtual std::unique_ptr<rawspeed::RawDecoder> rawspeed::RawParser::getDecoder(const
    rawspeed::CameraMetaData*), line 91: No decoder found. Sorry.
    [dt_imageio_export_with_flags] mipmap allocation for `unused' failed
    [temperature] failed to read camera white balance information from `measure.raw'!
    [dt_imageio_export_with_flags] mipmap allocation for `unused' failed
    [temperature] failed to read camera white balance information from `measure3.raw'!
    [dt_imageio_export_with_flags] mipmap allocation for `unused' failed

     

    What is this imageJ plugin you mentioned in your comment? Is it software or a plugin for another software?

    0
    Comment actions Permalink
  • DJI Developer Support
    1. If you are using the -extract command, that is fine. 2. imageJ wiki: https://en.wikipedia.org/wiki/ImageJ
    0
    Comment actions Permalink

Please sign in to leave a comment.