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

Camera usb



  • Hi !

    I try to find out and connect the external camera via usb hub on android, but the device is not detected, while I use some apps on Google play, it still opens this external camera, this topic has a lot of questions. Many people ask, but so far there is no solution, I hope everyone can help me

        QList<QCameraInfo> cameras = QCameraInfo::availableCameras();
        foreach (const QCameraInfo &cameraInfo, cameras)
        {
            ui->textEdit->setText(ui->textEdit->toPlainText()+","+cameraInfo.deviceName()+":"+cameraInfo.orientation()+"\n");
        }
    

    Thanks!



  • Hi,

    During my research, I found that there is a Libuvc library (https://github.com/libuvc/libuvc) that solves the problem, but the build process is quite complicated, because I use MinGw-64bit, there is a possibility of incompatibility (in the example, MSVC2019), there is who has worked on this topic please help me

    Many thanks!



  • @DQUY05 said in Camera usb:

    but the build process is quite complicated, because I use MinGw-64bit

    Mmm, it looks like your mixing things here.
    If you look to build this library libuvc for Android, you'll need to use Android NDK


Log in to reply