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

    OpenCV 无法找到摄像头

    Scheduled Pinned Locked Moved CS MIPI camera
    10 Posts 2 Posters 2.4k Views 1 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.
    • 1 Offline
      123
      last edited by

      按照官方教程 进行测试,到 Gstreamer 应用范例 部分都还测试正常工作。然后测试到 用 opencv 获取图像 时,三个示例都报错,未找到摄像头设备,报错情况如下:
      微信图片_20220831093222.jpg

      请问一下,这是什么原因呢?

      veye_xummV 1 Reply Last reply Reply Quote 0
      • veye_xummV Offline
        veye_xumm @123
        last edited by

        @123 请提供一下主板型号,模组型号。

        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 1 Reply Last reply Reply Quote 0
        • 1 Offline
          123 @veye_xumm
          last edited by

          @veye_xumm 板子是树莓派 4B,系统是 64bit的 PiOS,摄像头是 IMX327

          veye_xummV 1 Reply Last reply Reply Quote 0
          • veye_xummV Offline
            veye_xumm @123
            last edited by

            @123 不好意思,公司同事在搭建你这个环境中。但是天津突发疫情,我们这边被迫中断上班几天。请见谅。

            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 2 Replies Last reply Reply Quote 0
            • 1 Offline
              123 @veye_xumm
              last edited by

              @veye_xumm 好的好的,谢谢您

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

                @veye_xumm 请问您这边测试的怎么样了呢?

                veye_xummV 1 Reply Last reply Reply Quote 0
                • veye_xummV Offline
                  veye_xumm @123
                  last edited by

                  @123 终于解封了,他们已经在搞了。

                  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 1 Reply Last reply Reply Quote 0
                  • 1 Offline
                    123 @veye_xumm
                    last edited by

                    @veye_xumm 好的好的,感谢

                    veye_xummV 1 Reply Last reply Reply Quote 0
                    • veye_xummV Offline
                      veye_xumm @123
                      last edited by

                      @123
                      你好,我这边重现了你的问题。
                      有两种方法安装opencv到树莓派。

                      • 方法1
                      pip install opencv-python
                      

                      此方法安装,会存在你的这个问题。

                      • 方法2
                      sudo apt install python3-opencv
                      

                      此方法安装是可以的。

                      建议你尝试如下

                      pip uninstall opencv-python
                      sudo apt install python3-opencv
                      

                      然后再试一下。

                      实际上,在网络上建议的opencv安装方法,都是从源码编译的。
                      建议你参考这个:
                      https://qengineering.eu/install-opencv-4.5-on-raspberry-64-os.html

                      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 1 Reply Last reply Reply Quote 0
                      • 1 Offline
                        123 @veye_xumm
                        last edited by

                        @veye_xumm 好的好的,感谢,我去试一下

                        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