PDA

View Full Version : Questions about IC Imaging control with Open CV



OMGFYP
May 24, 2013, 15:32:02
I'm doing a application of eye-tracking with functions in OpenCV

Programming language: C#
Tools: Visual Studio 2010
Hardware tools: Imaging Source Video-to-USB 2 Converter

My concept is that,
1. get image from camera(connected by Video-to-USB 2 Converter)
2. do pupil detection with OpenCV
3. return pupil center (x,y)
then loop the above process

And I have the following problems:
1. Can I show 2 or more windows of live at once (one for original, the others for image after process) and how?
2. Usually, the sample code using "icImagingControl1.LiveStart()", it returns a sequence of images, can I get 1 frame at a time to fit my above concept? or any suggestion?


Thanks for reading =]

Stefan Geissler
May 24, 2013, 16:18:53
1. Can I show 2 or more windows of live at once (one for original, the others for image after process) and how?
I am sure, OpenCV or your C# OpenCV wrapper is able to show the processed image in an own window.

2. Usually, the sample code using "icImagingControl1.LiveStart()", it returns a sequence of images, can I get 1 frame at a time to fit my above concept? or any suggestion?

Yes. You must call MemorSnapImage, if you need an image. The image is saved in ImageActiveBuffer. The image data in the image must be forwarded to your OpenCV C# functions.

I wonder, how you use OpenCV in C#. There is a good wrapper available, called "Emgu"