Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How do qt combine with API camera2 .
Forum Updated to NodeBB v4.3 + New Features

How do qt combine with API camera2 .

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 2 Posters 864 Views 1 Watching
  • 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.
  • DQUY05D Offline
    DQUY05D Offline
    DQUY05
    wrote on last edited by
    #1

    Hi everyone !

    I use Qt5.15, C++, I want to use Camera API integrator, how do I start,
    thanks

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

      Hi,

      Do you mean you want to implement a custom QCamera backend ?

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

      DQUY05D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Do you mean you want to implement a custom QCamera backend ?

        DQUY05D Offline
        DQUY05D Offline
        DQUY05
        wrote on last edited by
        #3

        @SGaist said in How do qt combine with API camera2 .:

        Hi,

        Do you mean you want to implement a custom QCamera backend ?

        Dear Sir !

        I want to use it like this, to get realtime camera video, because Qt android is hard to get realtime camera even using Opencv method directly

        Thanks!

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

          What issues do you have with real-time camera in Qt ?
          OpenCV should also be fast provided you use it correctly.

          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
          • DQUY05D Offline
            DQUY05D Offline
            DQUY05
            wrote on last edited by
            #5

            @SGaist said in How do qt combine with API camera2 .:

            What issues do you have with real-time camera in Qt ?
            OpenCV should also be fast provided you use it correctly.

            Hello !

            I am using QVideoProbe to get real time camera according to this link, but it is still a bit slow due to delay, is there any way to increase the interrupt time

                  camera1->setCaptureMode(QCamera::CaptureVideo);
            
                  bool ret = probe_.setSource(camera1);
                  if(ret)
                  {
                   ui->inform->setText("đã nhận");
                  }
            
                  connect(&probe_,SIGNAL(videoFrameProbed(const QVideoFrame)),
                          this, SLOT(handleFrame(const QVideoFrame)));
            
                  camera1->start();
            

            Thanks!

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

              Is the delay introduced by your video frame processing ?

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

              DQUY05D 1 Reply Last reply
              0
              • SGaistS SGaist

                Is the delay introduced by your video frame processing ?

                DQUY05D Offline
                DQUY05D Offline
                DQUY05
                wrote on last edited by DQUY05
                #7

                @SGaist said in How do qt combine with API camera2 .:

                Is the delay introduced by your video frame processing ?

                No, I display it directly on a label, please help me where is it late

                void MainWindow::handleFrame(QVideoFrame frame)
                {
                
                     QImage image = frame.image();
                     ui->label_2->setPixmap(QPixmap::fromImage(image));
                }
                

                Thanks!

                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