VEYE IMAGING Forum
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc
    • Register
    • Login

    Please advise compatible mono camera

    Scheduled Pinned Locked Moved General Discussion
    15 Posts 2 Posters 6.8k Views 2 Watching
    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_xummV Offline
      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.

      Questions will be answered as soon as possible, please be patient.
      如果你使用中文,请直接用中文提问。
      May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

      D 1 Reply Last reply Reply Quote 0
      • D Offline
        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_xummV 1 Reply Last reply Reply Quote 0
        • veye_xummV Offline
          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?

          Questions will be answered as soon as possible, please be patient.
          如果你使用中文,请直接用中文提问。
          May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            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 Offline
              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_xummV D 2 Replies Last reply Reply Quote 0
              • D Offline
                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_xummV Offline
                  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.

                  Questions will be answered as soon as possible, please be patient.
                  如果你使用中文,请直接用中文提问。
                  May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    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_xummV 1 Reply Last reply Reply Quote 0
                    • veye_xummV Offline
                      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.

                      Questions will be answered as soon as possible, please be patient.
                      如果你使用中文,请直接用中文提问。
                      May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

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

                        @veye_xumm Thanks!

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post