Navigation

    VEYE IMAGING Forum

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

    SOLVED Please advise compatible mono camera

    General Discussion
    2
    15
    2311
    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.
    • veye_xumm
      veye_xumm @desperex last edited by

      @desperex

      @desperex said in Please advise compatible mono camera:

      The sensor supports only Y8 and Y10 formats so how do I map it to ISP which supports only YUV/RGB/bayer formats? At the moment I'm getting 'Broken pipe' error. In topology (below) I need to map formats of rkisp1_isp:pad0 and 'mvcam 4-003b:pad0

      Can't do that, after all, this is a mono sensor.
      mv seriescamera access to rockchip platform is what we are promoting. It is estimated that it will be completed within a month.
      As for the upgrade tool, we will also provide the corresponding binary file.

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

        @veye_xumm After deep analysis of rkisp driver I see two completely different implementations:

        1. from vendor: https://github.com/JeffyCN/mirrors/commit/72e4ba0ccf477a6d90f40a2fb5e3bc9e5025093b. That one explicitly supports MEDIA_BUS_FMT_Y8_1X8 and MEDIA_BUS_FMT_Y10_1X10 as input for ISP. I tried to bring all the changes to mainline (5.15.90) but it still fails somewhere when setting pipeline
        2. from collabora, mainline kernel, it seems to also have some mono camera support https://github.com/torvalds/linux/commit/9a0e3cd50d3967b669f0f0ea79a7054c7877d95b. But they require the camera to be set to YUV422 which can't be done with RAW-MIPI-SC132M

        @veye_xumm said in Please advise compatible mono camera:

        mv seriescamera access to rockchip platform is what we are promoting. It is estimated that it will be completed within a month.

        EDIT: There's also a warning "mvcam 4-003b: Consider updating driver mvcam to match on endpoints", not sure if it's harmful or not
        https://github.com/torvalds/linux/blob/v6.1/drivers/media/v4l2-core/v4l2-async.c#L142

        Ok will work on no.1 while waiting for any updates from you
        Thanks!

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

          @desperex

          @desperex said in Please advise compatible mono camera:

          EDIT: There's also a warning "mvcam 4-003b: Consider updating driver mvcam to match on endpoints", not sure if it's harmful or not

          This will not cause problems.

          For machine vision type cameras, many times the isp function is not needed. Many steps in isp are dealing with color, and this is certainly not necessary to do. There are also valid operations such as AE, gamma, etc. But there are many customer application scenarios that do not need these functions.
          Which functions of isp do you need, please?

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

            @veye_xumm said in Please advise compatible mono camera:

            Which functions of isp do you need, please?

            Just AE,IS and crop, if there was a way to skip ISP, I'd do.
            Other reqs would come up later, now I just can't start developing CV part.

            1 Reply Last reply Reply Quote 0
            • D
              desperex last edited by desperex

              @veye_xumm, is there a particular reason why veye-raw drivers are missing these controls:

              • V4L2_CID_ANALOGUE_GAIN_
              • V4L2_CID_EXPOSURE_
              • V4L2_CID_HBLANK_
              • V4L2_CID_VBLANK_

              EDIT: Figured out how to implement ANALOGUE_GAIN but the rest requires your help... EXPOSURE should be somehow converted from microseconds to image lines, the rest is just not in specs.
              Why PIXEL_RATE in driver is set to constant 750000000?
              Shouldn't it be like that?

              #define MVCAM_LINK_FREQ 750000000
              #define MVCAM_NUM_DATA_LANES 2
              
              #define MVCAM_PIXEL_RATE_8BIT = (MVCAM_LINK_FREQ * 2 * MVCAM_NUM_DATA_LANES / 8)
              #define MVCAM_PIXEL_RATE_10BIT = (MVCAM_LINK_FREQ * 2 *  MVCAM_NUM_DATA_LANES / 10)
              

              Since RAW-MIPI-SC132M camera has no AE, I'm evaluating libcamera for this purpose. And it has some requirements:
              https://git.linuxtv.org/libcamera.git/tree/Documentation/sensor_driver_requirements.rst#n25

              Is there any document that shows how to deal with your raw camera sensor, like creating control loop etc.?

              What's your best practices of using this sensor in opencv+libcamera scenarios?

              @veye_xumm said in Please advise compatible mono camera:

              mv seriescamera access to rockchip platform is what we are promoting. It is estimated that it will be completed within a month.
              As for the upgrade tool, we will also provide the corresponding binary file.

              And BTW I know it's too early but maybe there's already some progress=)
              I'm just interested how do you see that task, is it also something to support stats & params of Rockchip ISPs?

              veye_xumm D 2 Replies Last reply Reply Quote 0
              • D
                desperex last edited by

                @veye_xumm
                Another issue that I'm having with gstreamer that I run like this:

                gst-launch-1.0 v4l2src device=/dev/video1 ! "video/x-raw, width=1024, height=768" ! queue ! autovideosink -e
                

                is sometimes gives me 'squeezed frames moving up' effect (please see video). So that may happen right after the launch of gstreamer and I have to relaunch it. I haven't had that issue with the same setup but different camera (imx219), but my ISP driver is a little bit patched to support Y8 and Y10...
                Do you know is it camera related or ISP related or maybe some gstreamer bug?

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

                  @desperex
                  The RAW-MIPI-SC132M itself comes with an MCU controller, so it is not a sensor. So the registers provided by this camera are much easier to understand. The exposure time, for example, uses microseconds instead of lines. hblank and vblank do not need customers to worry at all.

                  MV-MIPI-SC130M has a AE built inside.

                  1 Reply Last reply Reply Quote 0
                  • D
                    desperex @desperex last edited by

                    @desperex said in Please advise compatible mono camera:

                    @veye_xumm said in Please advise compatible mono camera:

                    mv seriescamera access to rockchip platform is what we are promoting. It is estimated that it will be completed within a month.
                    As for the upgrade tool, we will also provide the corresponding binary file.

                    And BTW I know it's too early but maybe there's already some progress=)
                    I'm just interested how do you see that task, is it also something to support stats & params of Rockchip ISPs?

                    Is there any news?

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

                      @desperex
                      We apologize for the delay in getting back to you. We have now completed the driver development for the MV series and RAW series on the RK3588. Please refer to the link below for details.
                      http://wiki.veye.cc/index.php/MV_Camera_on_Firfly_Boards

                      Please note that we did not use the internal ISP function of the RK3588, nor did we debug libcamera. This is because our MV series cameras have AE function. If you are using the RAW series module, please use manual exposure mode.

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

                        @veye_xumm Thanks!

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