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. QCameraImageProcessingControl errors logs, but QCamera works as well
QtWS25 Last Chance

QCameraImageProcessingControl errors logs, but QCamera works as well

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 3 Posters 579 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.
  • A Offline
    A Offline
    acetone
    wrote on last edited by
    #1

    I have a simple QCamera Qt5.15 application. All works OK, but I see in console:

    Unable to query the parameter info: QCameraImageProcessingControl::WhiteBalancePreset : "Invalid argument"
    Unable to query the parameter info: QCameraImageProcessingControl::ColorTemperature : "Invalid argument"
    Unable to query the parameter info: QCameraImageProcessingControl::SaturationAdjustment : "Invalid argument"
    Unable to query the parameter info: QCameraImageProcessingControl::SharpeningAdjustment : "Invalid argument"
    

    How to fix it (simply disable)?

    Default Qt QCamera example also works with same errors in console.

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

      Hi,

      On which OS are you ?

      Not all backend are equals depending on the platform.

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

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        On which OS are you ?

        Not all backend are equals depending on the platform.

        A Offline
        A Offline
        acetone
        wrote on last edited by
        #3

        @SGaist MX Linux 21.3 (Debian based distrib)

        GStreamer installed from here: https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c#install-gstreamer-on-ubuntu-or-debian

        QCamera works

        SGaistS A 2 Replies Last reply
        0
        • A acetone

          @SGaist MX Linux 21.3 (Debian based distrib)

          GStreamer installed from here: https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c#install-gstreamer-on-ubuntu-or-debian

          QCamera works

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @acetone how are you accessing these controls ?

          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
          • A acetone

            @SGaist MX Linux 21.3 (Debian based distrib)

            GStreamer installed from here: https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c#install-gstreamer-on-ubuntu-or-debian

            QCamera works

            A Offline
            A Offline
            acetone
            wrote on last edited by acetone
            #5

            @SGaist

            int main(int argc, char *argv[]) {
                QApplication app(argc, argv);
            
                QCamera* camera = new QCamera(QCameraInfo::defaultCamera());
                QCameraImageCapture* capture = new QCameraImageCapture(camera);
                QCameraViewfinder finder(nullptr);
                camera->setViewfinder(&finder);
                QObject::connect(capture, &QCameraImageCapture::readyForCaptureChanged, [&](bool ready) {
                    if (ready) {
                        capture->capture();
                    }
                });
            
                QObject::connect(capture, &QCameraImageCapture::imageCaptured, [&](int id, QImage img) {
                    Q_UNUSED(id);
                    QByteArray buffer;
                    QBuffer imageBuffer(&buffer);
                    imageBuffer.open(QIODevice::WriteOnly);
                    img.save(&imageBuffer, "JPG");
            
                    qInfo() << "Image captured and saved to buffer!";
                    app.quit();
                });
            
                camera->setCaptureMode(QCamera::CaptureMode::CaptureStillImage);
                camera->start();
                capture->setCaptureDestination(QCameraImageCapture::CaptureToBuffer);
                capture->setBufferFormat(QVideoFrame::Format_RGB32);
            
                return app.exec();
            }
            

            I have only one camera and defaulDefice() return it (/dev/video0)

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

              Are you using your distribution provided Qt ?

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

              A 1 Reply Last reply
              0
              • SGaistS SGaist

                Are you using your distribution provided Qt ?

                A Offline
                A Offline
                acetone
                wrote on last edited by
                #7

                @SGaist yep. Distribution from Qt Online Installer. GStreamer was installed directly only.

                SGaistS 1 Reply Last reply
                0
                • A acetone

                  @SGaist yep. Distribution from Qt Online Installer. GStreamer was installed directly only.

                  SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  So you are not using your distribution provided Qt. Please try with this one.

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

                  A 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    So you are not using your distribution provided Qt. Please try with this one.

                    A Offline
                    A Offline
                    acetone
                    wrote on last edited by
                    #9

                    @SGaist how do I do that? There is no GStreamer item in the online installer. When running the application with QCamera, there were errors in the console about the absence of this library. I installed it. Everything else (all Qt binaries) is installed through the official installer.

                    jsulmJ 1 Reply Last reply
                    0
                    • A acetone

                      @SGaist how do I do that? There is no GStreamer item in the online installer. When running the application with QCamera, there were errors in the console about the absence of this library. I installed it. Everything else (all Qt binaries) is installed through the official installer.

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @acetone said in QCameraImageProcessingControl errors logs, but QCamera works as well:

                      There is no GStreamer item in the online installer

                      @SGaist suggested to try with Qt provided by your Linux distribution, not Qt online installer

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

                      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