[email protected] wrote:
> I'm tryng to show an openCV camera video stream in a fl_window.
> Could anyone suggest me some code example?
> Thank you
> Ivano
I don't know the answer, but you should probably mention
the platform you're using.
Hopefully others will chime in with more detail.
What I do know; having realtime video via 3rd party and even
native libraries in fltk windows has come up before, and I know
it can be done.
There was a thread back in 2006 on opencv, but it doesn't seem
to have been answered fully.
Usually when working with native libs or third party libs,
the answer in getting them to talk to fltk lies in getting
the native 'window handle' from FLTK, so that it can be passed
down to the native API calls to play the video.
Usually one gets what they need via the fl_xid(Fl_Window*) call;
under MS Windows it returns a HWND.
Under Unix it returns the X windows equivalent, and I think
there's a separate call to get the X windows display, ie. fl_display()
For more on these platform specific access methods, see:
http://fltk.org/doc-1.1/osissues.html#osissues
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk