[英]Can't get supported resolutions of the camera for image capturing using QCamera in Qt 5.0.2 (Linux)
[英]Why QCamera::CaptureVideo isn't supported?
我正在嘗試根據Qt的示例創建一個使用相機API的應用程序。
問題:
調用以檢查是否支持視頻捕獲后 ,返回false
。
camera->isCaptureModeSupported(QCamera::CaptureVideo) //returns false.
如果我嘗試忽略它並開始記錄-記錄不會開始並且沒有收到任何錯誤消息(此外, QMediaRecorder::errorString()
和QCamera::errorString()
返回空字符串)。
來自相機的圖像正確顯示在QCameraViewFinder
。
它基本上是Windows中的已知錯誤。
https://bugreports.qt.io/browse/QTBUG-30541
https://doc-snapshots.qt.io/qt5-5.5/qtmultimedia-windows.html
不過,它應該可以在其他平台上運行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.