Ahmed Kato
Ahmed Kato

Reputation: 1707

Is OpenCV C API outdated?

I am trying to use OpenCV in Raspberry Pi (embedded system) so I need the OpenCV C API source code so that I can compile it and use it.

After some search I found that C API was designed in OpenCV 1.x. Now it is supported for backward compatibility only. It is deprecated and may be removed in the future.

OpenCV has C documentation but I failed to get the source code.

So is OpenCV C API outdated or I can download the older version's source code ?

Upvotes: 6

Views: 5933

Answers (3)

user1055604
user1055604

Reputation: 1672

Quoted from the website for the current version of OpenCV:

OpenCV is released under a BSD license, it is free for both academic and commercial use. It has C++, C, Python and soon Java interfaces running on Windows, Linux, Android and Mac.

You can find sample C programs that ship with opencv in the samples/c folder in your installation or at their github site.

Upvotes: 2

schmatz
schmatz

Reputation: 183

Check out the installation guide here: http://opencv.willowgarage.com/wiki/InstallGuide

There is just one package for OpenCV, which does include bindings for C. However, I don't think C++ speed versus C speed should be a problem on the Raspberry Pi, so just use C++.

Upvotes: 3

ypnos
ypnos

Reputation: 52357

OpenCV C API is part of newer OpenCV releases as well.

However OpenCV internals are C++ in OpenCV 2.0 and later. So you cannot compile newer OpenCV without C++ support.

Upvotes: 9

Related Questions