Ask Your Question
0

Using OpenCV in D with C Bindings

asked 2014-10-01 11:57:06 -0600

Nivirx gravatar image

updated 2015-02-06 09:24:35 -0600

berak gravatar image

I have been looking around though google but can't seem to find a definite answer to the question if anyone has completed/is maintaining a D Language binding for OpenCV or if the C API is up to date enough for me to generate a D binding on my own.

tl;dr Is there a D binding for OpenCV?

edit retag flag offensive close merge delete

Comments

1

i don't know of any current D bindings, but using opencv's outdated c-api might be a bad idea nowadays (if you wrap it 'literally', you inherit all problems, that lead to its abandonment in 2010, also, you can only reach ~30% of opencv's current functionality this way.)

berak gravatar imageberak ( 2014-10-01 13:15:16 -0600 )edit

Yeah I had read about how the C-API's are pretty dated now, do you know of any people who have had luck with SWIG wrappers in other languages so I could attempt to adapt it to D?

Nivirx gravatar imageNivirx ( 2014-10-01 13:28:21 -0600 )edit
2

shame, you're too late to that party, again. afaik, they tried SWIG wrappers for some time, long ago, but discarded that in favour of something handrolled. this(seems to be the heart of it, with additional backends for python/java/matlab) - parsing the actual opencv2/c++ headers

berak gravatar imageberak ( 2014-10-01 13:38:52 -0600 )edit

Well it seems that the easiest route is to choose another language for now (Looks like java is the runner up), really wish the C API was up to date because that makes it much easier to interface with for most languages.

Nivirx gravatar imageNivirx ( 2014-10-02 08:42:47 -0600 )edit

I've been making this point for more than a year now. Too bad it didn't make it into the 3.0 official release. I really believe this should be the highest priority wrapper rather than having everyone literally reinvent the C wrapper... C++ is nice and all but horrible interop with pretty much everything.

glopes gravatar imageglopes ( 2015-08-18 08:55:38 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-04-30 18:02:07 -0600

aferust gravatar image

Opencv d binding is now on https://github.com/aferust/opencvd

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-10-01 11:57:06 -0600

Seen: 1,004 times

Last updated: Feb 06 '15