Ask Your Question

.cpp source files

asked 2015-06-28 16:14:24 -0500


I have a basic question since I am a beginer, maybe it is stupid but I do not know how to find the .cpp files of the different modules within the src folder after downloading the library. I can find without problem the header files (.hpp) within the includes/opencv2 path.

I am expecting a .cpp file with the same name as its header and the module itself.

I followed this OpenCV guide (

I hope anyone could help me. Thanks in advance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-06-29 06:37:57 -0500

updated 2015-06-29 06:38:37 -0500

Actually your downloaded folder should contain the following subfolders:

  • 3rdparty: all extra libs needed for the library
  • apps: application specifically designed for OpenCV based on the OpenCV sourcecode, mainly used for object detection and annotation for the moment
  • include: folder that contains all the header files as said before
  • modules: which contains the src code for each module, at the subfolder src for each module specifically
  • data: all data used by the provided software
  • doc: everything to build the documentation locally
  • samples: OpenCV examples

An example, the src of the core module can be found here.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-06-28 16:14:24 -0500

Seen: 99 times

Last updated: Jun 29 '15