I've done it using swig, and using C++ api (not C api), as well as for other libs (sfml etc). it requires a bit of tweaking the '.i' file but is doable. Much better than hand maintaining c wrappers.



On Tue, Oct 15, 2013 at 2:08 PM, Dejan Lekic <dejan.lekic@gmail.com> wrote:
On Tue, 15 Oct 2013 21:20:09 +0200, TJSomething wrote:

> I know this has been asked a few times before, but that was a few years
> ago. Are there any reasonably complete and up to date OpenCV bindings
> for D?
>
> If not, are there any reasonably easy ways to generate them? I tried
> SWIG and it choked on some of the macros they used, though that may have
> been because I had no idea what I was doing.

Should be easy to write wrapper around the OpenCV C API...