Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qcamerainfo availableCameras not work in windows 10



  • 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?


  • Lifetime Qt Champion

    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


  • 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.


  • Lifetime Qt Champion

    @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."



  • @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?


  • Lifetime Qt Champion

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



  • @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



  • @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.


  • Lifetime Qt Champion

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



  • 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


Log in to reply