ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Voxl2 camera RAW

    Ask your questions right here!
    3
    6
    46
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      robertociuch
      last edited by

      Hi everyone,

      is there a way to take some raw snapshot from the HiRes camera (IMX412 w microcoax wires)?
      I see that the file created by "voxl-send-command hires_large_color snapshot" is pretty small (less then 800KB)
      The preview on the voxl portal seems even better compared to the jpg image

      thank you in advance!

      1 Reply Last reply Reply Quote 0
      • Riccardo BenedettiR
        Riccardo Benedetti
        last edited by

        Hi all, I work with Roberto, adding here the voxl-camera-server.conf file we are currently using.

        {
        	"version":	0.1,
        	"fsync_en":	true,
        	"fsync_gpio":	109,
        	"cameras":	[{
        			"type":	"imx412",
        			"name":	"hires",
        			"enabled":	true,
        			"camera_id":	1,
        			"fps":	30,
        			"en_preview":	false,
        			"preview_width":	640,
        			"preview_height":	480,
        			"en_raw_preview":	false,
        			"en_small_video":	true,
        			"small_video_width":	1024,
        			"small_video_height":	768,
        			"small_venc_mode":	"h264",
        			"small_venc_br_ctrl":	"cqp",
        			"small_venc_Qfixed":	30,
        			"small_venc_Qmin":	15,
        			"small_venc_Qmax":	40,
        			"small_venc_nPframes":	9,
        			"small_venc_mbps":	2,
        			"small_venc_osd":	false,
        			"en_large_video":	true,
        			"large_video_width":	4056,
        			"large_video_height":	3040,
        			"large_venc_mode":	"h264",
        			"large_venc_br_ctrl":	"cqp",
        			"large_venc_Qfixed":	40,
        			"large_venc_Qmin":	15,
        			"large_venc_Qmax":	50,
        			"large_venc_nPframes":	29,
        			"large_venc_mbps":	40,
        			"large_venc_osd":	false,
        			"en_snapshot":	true,
        			"en_snapshot_width":	4056,
        			"en_snapshot_height":	3040,
        			"exif_focal_length":	4.5,
        			"exif_focal_length_in_35mm_format":	25,
        			"exif_fnumber":	4.5,
        			"ae_mode":	"off",
        			"gain_min":	54,
        			"gain_max":	8000,
        			"snapshot_jpeg_quality":	100
        		}]
        }
        
        

        We are using the snapshots for one of our projects and we would need to have the most detailed image possible to be processed with an external algo.
        Thanks

        R 1 Reply Last reply Reply Quote 0
        • R
          robertociuch @Riccardo Benedetti
          last edited by

          @Alex-Kushleyev
          We updated the voxl-camera-server to the last release, now setting the snapshot quality to 100 we get a bigger file, but it is still compressed.
          I read on a different topic that you already saw something about this

          thank you

          Alex KushleyevA 1 Reply Last reply Reply Quote 0
          • Alex KushleyevA
            Alex Kushleyev ModalAI Team @robertociuch
            last edited by

            @robertociuch , jpg quality of 100 will still result in a lossy / compressed output. What is your goal ?

            R 1 Reply Last reply Reply Quote 0
            • R
              robertociuch @Alex Kushleyev
              last edited by

              @Alex-Kushleyev

              We need to take snapshot with the best possible image quality, without compression if possible.
              It would be nice if we can save the single frames of the hires (few snapshots) in YUV NV12, which is the native format for the software we are using

              thanks

              Alex KushleyevA 1 Reply Last reply Reply Quote 0
              • Alex KushleyevA
                Alex Kushleyev ModalAI Team @robertociuch
                last edited by

                @robertociuch , you can use a tool voxl-record-raw-image which is a part of voxl-mpa-tools package, should be installed by default in the VOXL2 SDK. (see help for details for the tool)

                This allows you to save any image (whether it is bayer or yuv) at any time from command line. Would that work for you?

                Alex

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB | Contributors