Qt Creator调用GPU实现图像显示
本文主要针对开发人脸识别demo时图像较为卡顿做出探索,利用GPU实现图像信息的处理!
环境配置
在进行图像处理或者人脸识别是需要给电脑安装opencv环境,可参考其他文章进行配置;
代码示例
.pro文件
QT += core gui opengl
# 必须添加opengl模块
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the docu
共有 0 条评论