Creating a capture device driver in C++
Greetings, I see what seems to be all implementations of capture drivers build on C++ subclasses of struct CvCapture
. But it seems that CvCapture
is "black boxed" in the interfaces that are installed and the subclass cannot be laid out by the compiler without the definition.
I must be doing something wrong. I have a belief that I can create a capture driver outside of the main OpenCV source tree. Am I mistaken?
Thanks, Brian
" I have a belief that I can create a capture driver outside of the main OpenCV source tree. Am I mistaken?"
most likely, yes.
"most likely, yes" Are you unsure about this?
not at all.
what i'm unsure about is, - how to properly write a capture driver, so i haven't got a real answer.
Hmm. I've been using the modules in
modules/videoio/src
as a template:Funny story, I just realized I might not have searched well enough and did some more googling on creating a capture device and found a new page that wasn't in my browser cache. Lol, it was this page, google picked it up already.
Is there documentation on this that anyone might know about? folks that might be referred here? grateful for any guidance, thank you so much!!
Any progress on this? I'm looking at writing a capture driver for a Baumer camera. It seems straightforward (derive from CvCapture, fill in device-specific stuff) but it would be nice to find a tutorial or any other documentation on how to properly implement a new driver.