Ask Your Question

Is there a minimal source download for OpenCV?

asked 2013-10-15 22:13:36 -0500

dantswain gravatar image

Is there any (official or unofficial) source download of OpenCV that excludes some of the extras that make the official package very large?

The package takes quite a while to download, and unzips to over 170 MB:

du -h -d 1  
 52M    ./3rdparty
536K    ./apps
340K    ./cmake
 37M    ./data
 13M    ./doc
 52K    ./include
 34M    ./modules
2.0M    ./platforms
 33M    ./samples
172M    .

I'm deploying an app and don't need any of the demo data, samples, docs, or 3rdparty stuff.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-10-16 08:13:50 -0500

Artem gravatar image

When deploying you actually do not need any source at all, you need to either deploy dynamic library files or just link your app with static OpenCV libraries.

If you build OpenCV from source there are also some options where you can skip building docs, samples etc., but it concerns only development and not deployment.

edit flag offensive delete link more


I'm deploying to a different platform than I'm developing on and I don't have a CI server available. I've already got a build script that will skip all of the unnecessary stuff. What I'm looking for is something to speed up the download process (which includes a lot of stuff that's not even necessary for development).

dantswain gravatar imagedantswain ( 2013-10-16 11:02:56 -0500 )edit

Isn't it a solution to create a personal zip package with only the necessary parts?

StevenPuttemans gravatar imageStevenPuttemans ( 2013-10-17 07:30:47 -0500 )edit

Yes, that is a solution, though it's somewhat non-ideal for me because I'd need to host it somewhere. My original question is is there any such package already available.

dantswain gravatar imagedantswain ( 2013-10-17 07:48:23 -0500 )edit

Probably some people will have specific packages, but it will never satisfy your result. I think you can easily get some GB of hosting for like 15 dollars a year, so that should be possible... And it will be more ideal, because you can make it specific for your application.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-10-17 07:58:38 -0500 )edit

So the answer to my question is no. If someone would answer that, I would give them answer credit :P

Still, you could get all of the functionality of OpenCV without the demos, demo data, or the 3rdparty library sources, which account for the majority of the download size. I do understand why it's packaged that way. But it's not practical for deployment usage (most other libraries are not packaged that way).

dantswain gravatar imagedantswain ( 2013-10-17 08:48:13 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2013-10-15 22:13:36 -0500

Seen: 222 times

Last updated: Oct 16 '13