简体   繁体   English

如何通过Qt c++ gui应用程序访问USB摄像头

[英]How to access USB camera through Qt c++ gui application

I am new to Qt GUI development.我是 Qt GUI 开发的新手。 I have installed Qt GUI on windows platform.我已经在 windows 平台上安装了 Qt GUI。 I need to setup a Qt C++ based GUI application to run connected USB camera.我需要设置一个基于 Qt C++ 的 GUI 应用程序来运行连接的 USB 摄像头。 I tried to find out the related example but mostly based on webcam application.我试图找出相关示例,但主要基于网络摄像头应用程序。 Is there any suggested example for accessing USB camera via Qt C++ GUI, I can go through?是否有任何通过 Qt C++ GUI 访问 USB 摄像头的建议示例,我可以通过吗?

There is no essential difference between "webcam" and "usb camera". “网络摄像头”和“USB摄像头”之间没有本质区别。 A webcam is a video camera that feeds or streams an image or video in real time.网络摄像头是一种摄像机,可以实时传输或流式传输图像或视频。 This means that your USB camera can be a webcam if it supports such a function.这意味着如果您的 USB 摄像头支持此类功能,则它可以成为网络摄像头。

To accomplish your task, use the qt documentation and it's perfect examples, like this camera example .要完成您的任务,请使用 qt 文档和它的完美示例,例如这个相机示例

Also, could be useful:此外,可能有用:

  1. Recording Video from USB Cam with Qt5 使用 Qt5 从 USB Cam 录制视频
  2. Camera Overview相机概览

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM