Navigation

    VEYE IMAGING Forum

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc

    Best Settings for Low LUX IMX462

    Raspberry Pi App Software
    2
    17
    1628
    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.
    • P
      PicantePeperoni last edited by

      Re: Best Settings for Night Time

      Hello,
      I would like to follow up on this past topic. I would like to understand what are the best nighttime settings through the IO Config tools. Currently I am using the VEYE-MIPI-IMX462 on a RaspberrPi 3B and displaying the output with HDMI output preview window ./veye_raspipreview -t -1

      I have tried to adjust the following IO configurations:
      wdrmode = 0x03 (Enabled)
      denoise = 0x0 (Disabled)
      agc = 0x0 and 0xF (0x0 seems to be a direct output with higher noise, 0xF appears to apply some sort of noise reduction but no change in gain from what I can tell but I would think 0xF would be best?)
      lowlight = 0x1, 0x9, 0x11 (No difference from what I can tell but I would think 0x1 would be best?)
      mshutter = 0x40, 0x4C, 0x52 (No difference from what I could tell but I would think 0x52 is best?)

      help would be greatly appreciated. Am I missing addtional settings?
      Thank you,

      veye_xumm 1 Reply Last reply Reply Quote 0
      • veye_xumm
        veye_xumm @PicantePeperoni last edited by

        @picantepeperoni

        • wdrmode :If your scene is not a wide dynamic scene, without strong contrast between light and dark, it is recommended to turn it off.
        • denoise : If your scene has no fast moving objects, it is recommended to keep the default noise reduction intensity.
        • agc : In a dark environment, a higher agc setting can cause a larger gain value of the sensor, bringing stronger brightness and higher noise. Choose according to your actual test situation, it is not recommended to set too large.
        • lowlight: If you can tolerate automatic frame rate reduction in dark environments, then lowlight can dramatically improve exposure times in dark environments and significantly improve image quality.
        • mshutter :This is a manual mode, are you sure you need it?
        P 1 Reply Last reply Reply Quote 0
        • P
          PicantePeperoni @veye_xumm last edited by

          @veye_xumm Thank you, that was helpful. Maybe I have a problem with my configuration or the preview method that I am using to display does not use the configurations becuase I dont see much of a difference for denoise, AGC, and lowlight regardless of the settings I use. Do I need to move to the v4l2 driver?

          veye_xumm 1 Reply Last reply Reply Quote 0
          • veye_xumm
            veye_xumm @PicantePeperoni last edited by

            @picantepeperoni
            The image effect has nothing to do with the use of legacy mode or v4l2mode.
            You can upload a shot of the picture.

            P 1 Reply Last reply Reply Quote 0
            • P
              PicantePeperoni @veye_xumm last edited by

              @veye_xumm I can take pictures of my monitor but they will look exactly the same after changing the IO configuraitons. Is there a functionality to display the IO configurations and sensor attributes over the camera feed? For example, can I see the current AGC and shutter speed on the camera output?

              veye_xumm 1 Reply Last reply Reply Quote 0
              • veye_xumm
                veye_xumm @PicantePeperoni last edited by

                @picantepeperoni With all the parameters modified using the veye_mipi_i2c.sh script, have you tried re-reading them after the changes?
                Is your shooting scene a dark scene?

                P 1 Reply Last reply Reply Quote 0
                • P
                  PicantePeperoni @veye_xumm last edited by

                  @veye_xumm Hello, I think I have solved the problem by switching to the v4l2 driver and running the command :

                  gst-launch-1.0 v4l2src io-mode=dmabuf device=/dev/video0 ! "video/x-raw,format=(string)UYVY, width=(int)1920, height=(int)1080,framerate=(fraction)30/1" ! v4l2convert capture-io-mode=dmabuf output-io-mode=dmabuf ! autovideosink sync=false -v

                  However, I have a new problem where I am only getting 5 FPS to be displayed trough the HDMI out. I beleive that this is related to the debayer/conversion from Raw UYVY format to the HDMI output as when I run the FPS test:

                  gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,format=(string)UYVY, width=(int)1920, height=(int)1080,framerate=(fraction)30/1" ! videoconvert ! fpsdisplaysink video-sink=fakesink -v

                  It will show a solid 30 FPS. Also when I run the command for including the timestamp, the framerate is much better, probably because it is down converting to a 640x360 format.

                  As such, is there some way that I can efficiecntly convert and output the Camera feed to HDMI?

                  Thank you,

                  veye_xumm 1 Reply Last reply Reply Quote 0
                  • veye_xumm
                    veye_xumm @PicantePeperoni last edited by

                    @picantepeperoni
                    It is recommended that you use legacy mode, which uses the GPU to transfer the input image directly to the HDMI output, without taking up CPU resources.

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      PicantePeperoni @veye_xumm last edited by

                      @veye_xumm Okay, I think I fixed the issue with low FPS by running it through multiple threads, I seem to be getting a pretty consistent high framerate and low latency.

                      However, I wanted to know how I can issue commands to the i2c when using the v4l2 driver. Does it have to go thorugh the gstreamer commands or is that something that I issue like normal through the legacy interface? Do I still need to have i2c enabled thorugh Raspi-config?

                      Thank you,

                      veye_xumm 1 Reply Last reply Reply Quote 0
                      • veye_xumm
                        veye_xumm @PicantePeperoni last edited by

                        @picantepeperoni

                        @picantepeperoni said in Best Settings for Low LUX IMX462:

                        Does it have to go thorugh the gstreamer commands or is that something that I issue like normal through the legacy interface? Do I still need to have i2c enabled thorugh Raspi-config?

                        You can implement it by writing registers directly through i2c scripts like legacy mode. Yes.

                        P 1 Reply Last reply Reply Quote 0
                        • P
                          PicantePeperoni @veye_xumm last edited by

                          @veye_xumm Hello, I have been able to successfully set the i2c commands and the camera module is working great. Is there any way to increase the FPS that is supported by the module as it appears the module will only output a maximim of 30fps?

                          Additionally, I would like to know if there are alternative colorspace modes other than UYVY that would provide faster latency and allow for faster processing on my raspberry pi device.

                          veye_xumm 1 Reply Last reply Reply Quote 0
                          • veye_xumm
                            veye_xumm @PicantePeperoni last edited by

                            @picantepeperoni

                            @picantepeperoni said in Best Settings for Low LUX IMX462:

                            it appears the module will only output a maximim of 30fps?

                            Sorry, the maximum performance of this module is 1080p@30fps

                            @picantepeperoni said in Best Settings for Low LUX IMX462:

                            Additionally, I would like to know if there are alternative colorspace modes other than UYVY that would provide faster latency and allow for faster processing on my raspberry pi device.

                            Sorry,It just output UYVY for now.

                            P 1 Reply Last reply Reply Quote 0
                            • P
                              PicantePeperoni @veye_xumm last edited by

                              @veye_xumm That is very helpful, thank you. Do you happen to know the device's inherent expected latency? Additionally, are there any options to adjust the camera module's data transmission rate either through frequency or blocksize?

                              P 1 Reply Last reply Reply Quote 0
                              • P
                                PicantePeperoni @PicantePeperoni last edited by

                                @picantepeperoni Hello, I would like to follow up on this topic, any thoughts on the device's expected latency from when light hits the sensor to when its communicated to the host device through the CSI connector? I would expect it to be somewhere around 1-2ms but was wiondering if the processign that is occuring on the PCB is expected to take longer before it runs through the PCB due to buffering and/or processing.

                                veye_xumm 1 Reply Last reply Reply Quote 0
                                • veye_xumm
                                  veye_xumm @PicantePeperoni last edited by

                                  @picantepeperoni Sorry, I didn't respond to your previous post in a timely manner. The VEYE series cameras have a relatively large delay because they have an ISP module built in. Some steps in the ISP module require buffering of the entire frame, such as HDR and denoise.

                                  P 1 Reply Last reply Reply Quote 0
                                  • P
                                    PicantePeperoni @veye_xumm last edited by

                                    @veye_xumm If I was to disable the HDR and denoise features, would that reduce the ISP delay?

                                    veye_xumm 1 Reply Last reply Reply Quote 0
                                    • veye_xumm
                                      veye_xumm @PicantePeperoni last edited by

                                      @picantepeperoni We have had customers attempt similar approaches, but the results were not significant.

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post