摘要: //opencv4获取FPS /* 两种计算时间方法: GetTickcount函数:它返回从操作系统启动到当前所经的计时周期数。 getTickFrequency函数:返回每秒的计时周期数。 */ #include<opencv2/opencv.hpp> #include<iostream> #i 阅读全文
posted @ 2020-09-14 22:14 Loving-Q 阅读(702) 评论(0) 推荐(0) 编辑
摘要: int main() { Mat img = imread("C:\\Users\\24731\\Desktop\\000\\001.jpg"); if (img.empty()) { cout << "请确认图像文件名称是否正确" << endl; return -1; } Mat gray, q 阅读全文
posted @ 2020-09-14 21:45 Loving-Q 阅读(735) 评论(0) 推荐(1) 编辑