Unsolved How do qt combine with API camera2 .
-
Hi everyone !
I use Qt5.15, C++, I want to use Camera API integrator, how do I start,
thanks -
Hi,
Do you mean you want to implement a custom QCamera backend ?
-
@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!
-
What issues do you have with real-time camera in Qt ?
OpenCV should also be fast provided you use it correctly. -
@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!
-
Is the delay introduced by your video frame processing ?
-
@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!