当前位置:网站首页>QT makes simple video calls
QT makes simple video calls
2022-06-10 07:20:00 【Come on, Doo】
Call the computer camera
First of all, the video call needs to call the computer camera .
The classes used are QCamera,QCameraImageCapture
QCamera Used to call the computer camera .QCameraImageCapture The number of frames used to capture the current camera
QCameraImageCapture There's a signal imageCaptured, When this signal is triggered , You can define a slot function to capture the current picture 
Define a image To capture
m_Image=preview.convertToFormat(QImage::Format_RGB888);
So the picture is captured . And then through tcp transmitted .
TCP Transfer pictures
Required 2 Classes
QTcpSocket,QTcpServer
socket For communication .server Used to listen to the interface .
First create the client socket. Define ports and ip Address .
connected This signal is used for connection .
tcpserver For monitoring . For example, I monitor 2022 This interface .
if(!m_pTcpServer->listen(QHostAddress::Any, 2022)) // Port is 2022
Judge whether the monitoring is successful .
To transmit a picture is to write the picture into QByteArray. Then it is converted when reading .
After the conversion is complete, use a qlabel Display .
I haven't added the voice function at present . I will study this later .
Anyway, the general principle is to capture the pictures of the current camera . And then through tcp Transfer the past .
Speed is OK . There's basically no Caton .
What you need can be done here Self taking . Thank you for your support .
design sketch :
Transfer to desktop via laptop camera . Because desktop computers don't have cameras . So it's one-way .
边栏推荐
- R 17 date format exercise
- 键盘事件与表单事件
- [dynamic planning] leetcode1092 Shortest common supersequence
- Arduino配置ESP32开发环境
- SQL makes a column empty
- MySQL UUID函数在达梦中的移植方法
- ShardingSphere实践(6)——弹性伸缩
- A brief introduction to the difference between static web pages and dynamic web pages webl Differences between 0 and Web2.0 brief introduction to the differences between get and post methods
- POC_ Jenkins
- P1073 [NOIP2009 提高组] 最优贸易 题解 分层图最短路
猜你喜欢

「动态规划」0/1背包问题

解决:vscode中go语言项目不能自动导包问题

成功解决:ImportError: cannot import name ‘Imputer‘ from ‘sklearn.preprocessing

Applet: scroll to the top of the page or an element position
![[dynamic planning] leetcode1092 Shortest common supersequence](/img/57/076c81b3b5d429d1272899d59d12a1.png)
[dynamic planning] leetcode1092 Shortest common supersequence

29. solution for 300ms delay time of click event at mobile terminal

8-1不安全的文件下载原理和案例演示

R语言怎么利用ggplot2绘制QQ图和箱线图

Cloud native network edge -- cilium overview

npm怎么安装与使用
随机推荐
Instagram CEO: "Apple iPad is not very popular, and it is not worth developing an exclusive version of the app"
Markdown MD file editor test instructions
键盘事件与表单事件
一举刷新 54 个中文 NLP 任务基准,ERNIE3.0加持下的EasyDL可能是市面上最好用的NLP开发平台...
Congratulations from all researchers! Just officially announced!! Free training in English!!
Detailed explanation of C language linked list
Capacitive isolation principle
想要粽子可以,但是得经过我的认证授权才可以
Create RT thread software simulation project and write RT thread kernel
Analysis: stable currency is not "stable currency", but a product in essence
618 l'informatique en nuage stimule la diffusion en direct du commerce électronique
618 big promotion is in progress, Cloud Computing supports e-commerce live broadcast
2. ZK's working mechanism
Solution: the go language item in vscode cannot be automatically imported
小程序:滚动到页面顶部或者某个元素位置
leetcode. 38 --- appearance series
R语言怎么利用ggplot2绘制QQ图和箱线图
Solidity-Array数组的长度维护,如何彻底删除元素.
Successfully solved: importerror: cannot import name 'import' from 'sklearn preprocessing
Cython的使用