【发布时间】:2017-03-29 19:29:19
【问题描述】:
我试图弄清楚如何在 C++ 中将保存的图像放置在网络摄像头流上。
诀窍是我想把图像放在脸上,只要脸移动,图像就会移动。我可以在这里用我的代码在脸上画一个圆圈:
Point center = Point(faces[i].x + faces[i].width*0.5, faces[i].y + faces[i].height*0.45);
circle(captureFrame, center, faces[i].width / 1.65, cvScalar(0, 0, 255, 0), 50, 8, 0);
imshow("outputCapture", captureFrame);
但是,我想使用 Point 函数在我捕获的网络摄像头帧 (captureFrame) 上显示一个图像 (test_image.jpg),以始终找到脸部的中心。
非常感谢您的帮助!
【问题讨论】:
标签: c++ image opencv face-recognition imshow