I am using OpenCV to take a live stream from a webcam and after detecting faces. I am resizing them so that only my face is displayed.
But the problem is that I am doing all this in C++ Windows Forms and I want it to be displayed in a PictureBox
instead of getting the display in OpenCV imshow()
window.
I'm using cv::Mat
so I am having a great deal of problem with displaying in the picture box.
I have tried converting it into IplImage
but that didn't work either.
Also, I have tried Google but I couldn't get a working solution. I've been trying this for 3 days.
Here's my code for displaying:
face = getFace(frame);
cv::imshow("window",face);
where frame
and face
are cv::Mat
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…