Home > Mobile >  Qt cameras to capture images problem: CameraBin error: & quot; Internal data flow error. & quot;
Qt cameras to capture images problem: CameraBin error: & quot; Internal data flow error. & quot;

Time:10-03

Run separate camera viewfinder, interface can display properly, nor an error; Single capture, don't show the viewfinder preview, also no problem, but when I open the viewfinder preview, and capture the image, the "CameraBin error:" Internal data flow error. "" error, when appeared the fault, the viewfinder display abnormal, can't again to capture images,
 
If (camera==NULL) {
Camera=new QCamera (this);
The connect (camera, SIGNAL (hook its statusChanged (QCamera: : Status)), and this, SLOT (slotStateChanged (QCamera: : Status)));
The connect (camera, SIGNAL (error (QCamera: : error)), and this, SLOT (slotCameraError (QCamera: : error)));
}
If (viewfinder==NULL) {
Viewfinder=new QCameraViewfinder (this);
The UI - & gt; Widgets - & gt; Layout () - & gt; AddWidget (viewfinder);
Camera - & gt; SetViewfinder (viewfinder);
}
If (imageCapture==NULL) {
ImageCapture=new QCameraImageCapture (camera);
The connect (imageCapture, SIGNAL (imageCaptured (int, QImage)), and this, SLOT (the displayImage (int, QImage)));
The connect (imageCapture, SIGNAL (error (int, QCameraImageCapture: : error, QString)), and this, SLOT (slotError (int, QCameraImageCapture: : error, QString)));
}
ImageCapture - & gt; SetCaptureDestination (QCameraImageCapture: : CaptureToBuffer);
ImageCapture - & gt; SetBufferFormat (QVideoFrame: : PixelFormat: : Format_Jpeg);
  •  Tags:  
  • Qt
  • Related