Qt小部件中的摄像头访问
Camera access in Qt widget
我无法在我的Qt小部件应用程序中访问android相机。。我尝试了QCamera API,它在调试中返回错误,如下所示
D libCamera.so:../Camera/main.cpp:13(int main(int,char**((:hi W链接器:/data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqgif.so:不支持的标志DT_flags_1=0x81 W链接器:/data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqicns.so:不支持的标志DT_flags_1=0x81 W链接器:/data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqico.so:不支持的标志DT_flags_1=0x81 W链接器:/data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqjpeg.so:不支持的标志DT_flags_1=0x81 W链接器:/data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqtga.so:不支持的标志DT_flags_1=0x81 W链接器:/data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqtiff.so:不支持的标志DT_flags_1=0x81 W链接器:/data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqwbmp.so:不支持的标志DT_flags_1=0x81 W链接器:/data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqwebp.so:不支持的标志DT_flags_1=0x81 W libCamera.so:(null(:0((null((:视频表面与支持的任何格式都不兼容camera V BoostFrame:BoostFrame((:mPerf=com.qualcomm.qti.Performance@42a0529D摄像头:应用程序传递了NULLsurface D Camera:app传递了NULL surface W libCamera.so:(NULL(:0((null(:视频表面与任何格式都不兼容摄像头支持D摄像头:应用程序通过NULL曲面D摄像头:应用程序通过了NULL表面
"org.qtproject.example"去世了。
先生,当我在android设备中运行应用程序时,我的设备摄像头应该被访问/打开
这是我的相机.cpp代码--->
如果有任何更正,请告诉我?
包括"camera.h">
包括"ui_camera.h">
相机::相机(QWidget*父级(:QMainWindow(父窗口(,ui(新ui::相机({ui->setupUi(this(;
camera = new QCamera;
viewfinder = new QCameraViewfinder;
camera->setViewfinder(viewfinder);
viewfinder->show();
camera->start(); // to start the viewfinder
imageCapture = new QCameraImageCapture(camera);
camera->setCaptureMode(QCamera::CaptureStillImage);
camera->start(); // Viewfinder frames start flowing
camera->searchAndLock();
imageCapture->capture();
camera->unlock();
}
- 通过方法访问结构
- Qt小部件中的摄像头访问
- 媒体基金会可以允许多个客户端同时访问单个网络摄像头设备吗?
- 使用OpenCV访问摄像头(通过GSTREAMER)
- 我如何访问IP摄像机错误(摄像头 /型号:Grundig / GCI-K1505B)
- systemd无法通过opencv访问摄像头
- EasyAr访问摄像头框架作为OpenCV垫子
- IP摄像头使用OpenCV访问
- 如何访问OpenCV中UDEV与UDEV相关的网络摄像头
- 使用USB编程访问多个网络摄像头
- 如何使用android ndk访问摄像头
- 如何访问MacBook上的网络摄像头
- cv::VideoCapture:从两个线程访问同一个网络摄像头
- 在Windows 10/OpenCV下访问网络摄像头时出现问题
- 无法访问我的网络摄像头opencv ubuntu
- opencv视频采集和虚拟机上的摄像头访问
- 我如何使用OpenCV访问外部网络摄像头?
- 通过Cortex-M3访问USB摄像头
- 如何在visual C++2010或2008中使用OpenCV 2.1访问ip摄像头(compro IP50W)
- FFMPEG与c++访问一个网络摄像头