Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qcamerainfo availableCameras not work in windows 10

Qcamerainfo availableCameras not work in windows 10

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 5 Posters 1.9k Views
  • 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.
  • cvitaglianoC Offline
    cvitaglianoC Offline
    cvitagliano
    wrote on last edited by
    #1

    I use Qt 5.10.1 and am trying to run an application on windows 10, but the QCameraInfo::availableCameras().count() statement always returns zero, ie it does not find a webcam installed on the notebook. This same application runs normally on Linux, Mac OS and windows 7. I have already enabled the camera on the OS so that all applications can access the webcam. Is there any "trick" to make this statement run in windows 10?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should also add:

      • Which exact version of Windows you are using
      • The model of the camera
      • Whether it comes with a special driver

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      cvitaglianoC 1 Reply Last reply
      2
      • Prince_0912P Offline
        Prince_0912P Offline
        Prince_0912
        wrote on last edited by
        #3

        Find Driver of that Webcam for Windows 10 OS or Simply goto settings -> Update -> Check for Update. Then may be you will get essential driver for Webcam. After this restart your machine and execute program again.

        jsulmJ 1 Reply Last reply
        0
        • Prince_0912P Prince_0912

          Find Driver of that Webcam for Windows 10 OS or Simply goto settings -> Update -> Check for Update. Then may be you will get essential driver for Webcam. After this restart your machine and execute program again.

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Prince_0912 As stated in his post the camera already works:
          "I have already enabled the camera on the OS so that all applications can access the webcam."

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • Prince_0912P Offline
            Prince_0912P Offline
            Prince_0912
            wrote on last edited by
            #5

            @jsulm i had same issue like this, i have asus webcam that is supported or working in win xp , 7 , vista , 8 but not in 8.1 and 10. Since application is same. So what kind of that issue occurs if this type is not?

            jsulmJ 1 Reply Last reply
            0
            • Prince_0912P Prince_0912

              @jsulm i had same issue like this, i have asus webcam that is supported or working in win xp , 7 , vista , 8 but not in 8.1 and 10. Since application is same. So what kind of that issue occurs if this type is not?

              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Prince_0912 The webcam is working in other applications, but Qt app cannot find it

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • Prince_0912P Offline
                Prince_0912P Offline
                Prince_0912
                wrote on last edited by
                #7

                @jsulm ok i understood. This below funcrtion might be helpful and it return the Object and before use it he must to check to isnull or not if null then there is no Camera device at all.
                QCameraInfo QCameraInfo::defaultCamera()

                I think version may affect to this type of issues.
                Thank you @jsulm

                1 Reply Last reply
                0
                • SGaistS SGaist

                  Hi,

                  You should also add:

                  • Which exact version of Windows you are using
                  • The model of the camera
                  • Whether it comes with a special driver
                  cvitaglianoC Offline
                  cvitaglianoC Offline
                  cvitagliano
                  wrote on last edited by
                  #8

                  @SGaist Hi, i use Windows 10 Home Single Language 64 bits, version 1803, and the camera is a webcam embedded in a Samsung laptop/notebook.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    More hardware information might help. Did you get any error on the console when running your application ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      hrithik singh
                      wrote on last edited by hrithik singh
                      #10

                      We have the same problem
                      Camera.Start() throws access violation error.
                      the hardware configuration is below
                      http://www.wortmann.asia/data/album/file/1530168638752052316.pdf

                      Video Capture Devices
                      Number of Devices: 2

                             FriendlyName: User Facing Right
                                 Category: Camera
                             SymbolicLink: \\?\display#int3470#4&5dbfe47&0&uid13424#{e5323777-f976-4f5b-9b55-b94699c46e44}\{089f8e59-ffe6-4494-97e5-92273c08f2f1}
                                 Location: Front
                                 Rotation: 0
                             Manufacturer: Intel Corporation
                               HardwareID: VIDEO\VEN_8086&DEV_591E&SUBSYS_224317AA&REV_02&INT3470,VIDEO\VEN_8086&DEV_591E&SUBSYS_224317AA&INT3470,VIDEO\VEN_8086&DEV_591E&INT3470,VIDEO\INT3470
                               DriverDesc: Intel(R) AVStream Camera 2500
                           DriverProvider: Intel
                            DriverVersion: 30.14393.9656.3064
                        DriverDateEnglish: 9/23/2016 00:00:00
                      DriverDateLocalized: 23/09/2016 00:00:00
                                  Service: iacamera64
                                    Class: MEDIA
                            DevNodeStatus: 180200A[DN_DRIVER_LOADED|DN_STARTED|DN_DISABLEABLE|DN_NT_ENUMERATOR|DN_NT_DRIVER]
                              ContainerId: {00000000-0000-0000-FFFF-FFFFFFFFFFFF}
                              ProblemCode: No Problem
                      

                      BusReportedDeviceDesc: ISP Camera Device
                      Parent: PCI\VEN_8086&DEV_591E&SUBSYS_224317AA&REV_02\3&11583659&1&10
                      DriverProblemDesc: n/a
                      UpperFilters: n/a
                      LowerFilters: n/a
                      Stack: \Driver\ksthunk,\Driver\iacamera64,\Driver\igfx
                      ContainerCategory: n/a
                      SensorGroupID: n/a
                      MFT0: {5CDB3151-134C-4622-8E44-FAA9158D2F4C}
                      DMFT: n/a
                      DependentStillCapture: n/a
                      EnablePlatformDMFT: n/a
                      DMFTChain: n/a
                      EnableDshowRedirection: n/a
                      FrameServerEnabled: False

                             FriendlyName: World Facing Right
                                 Category: Camera
                             SymbolicLink: \\?\display#int3470#4&5dbfe47&0&uid13424#{e5323777-f976-4f5b-9b55-b94699c46e44}\{ce46c6bb-90df-4932-8ec1-add1804961a1}
                                 Location: Back
                                 Rotation: 0
                             Manufacturer: Intel Corporation
                               HardwareID: VIDEO\VEN_8086&DEV_591E&SUBSYS_224317AA&REV_02&INT3470,VIDEO\VEN_8086&DEV_591E&SUBSYS_224317AA&INT3470,VIDEO\VEN_8086&DEV_591E&INT3470,VIDEO\INT3470
                               DriverDesc: Intel(R) AVStream Camera 2500
                           DriverProvider: Intel
                            DriverVersion: 30.14393.9656.3064
                        DriverDateEnglish: 9/23/2016 00:00:00
                      DriverDateLocalized: 23/09/2016 00:00:00
                                  Service: iacamera64
                                    Class: MEDIA
                            DevNodeStatus: 180200A[DN_DRIVER_LOADED|DN_STARTED|DN_DISABLEABLE|DN_NT_ENUMERATOR|DN_NT_DRIVER]
                              ContainerId: {00000000-0000-0000-FFFF-FFFFFFFFFFFF}
                              ProblemCode: No Problem
                      

                      BusReportedDeviceDesc: ISP Camera Device
                      Parent: PCI\VEN_8086&DEV_591E&SUBSYS_224317AA&REV_02\3&11583659&1&10
                      DriverProblemDesc: n/a
                      UpperFilters: n/a
                      LowerFilters: n/a
                      Stack: \Driver\ksthunk,\Driver\iacamera64,\Driver\igfx
                      ContainerCategory: n/a
                      SensorGroupID: n/a
                      MFT0: {5CDB3151-134C-4622-8E44-FAA9158D2F4C}
                      DMFT: n/a
                      DependentStillCapture: n/a
                      EnablePlatformDMFT: n/a
                      DMFTChain: n/a
                      EnableDshowRedirection: n/a
                      FrameServerEnabled: False

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved