Ask Your Question
0

Does OpenCV 3.x have C API for Machine Learning?

asked 2016-08-04 02:41:09 -0600

MSCarl gravatar image

As I see in the docs, there seems to be only C++ classes. If I need to use ML in C, do I have to write my own wrapper?

PS. I am not actually planning on to use ML in C, but in Haskell. However, Haskell does not have C++ FFI, so I need C interface

edit retag flag offensive close merge delete

Comments

You can take a look at the outdated C and Haskel binding proposal: https://github.com/opencv/opencv_cont... (maybe even revive it!)

mshabunin gravatar imagemshabunin ( 2016-08-09 08:45:17 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-08-04 02:46:51 -0600

berak gravatar image

NO it does not. (and you should not be using opencv's deprecated 1.0 api at all)

sure you need a c style interface for your FFI, but please write your own wrapper (around c++ functionality), then.

looking at the generated java bindings might be a good inspiration.

edit flag offensive delete link more

Comments

Now I am a little bit intrigued. Does the Java binding actually calls the C++ implementation under the hood? Or is the entire OpenCV generated in Java from C++?

MSCarl gravatar imageMSCarl ( 2016-08-09 08:55:57 -0600 )edit

shallow wrappers around the c++ functionality.

berak gravatar imageberak ( 2016-08-09 09:00:24 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2016-08-04 02:41:09 -0600

Seen: 283 times

Last updated: Aug 04 '16