Exclude modules while building OpenCV

asked 2015-02-24 09:14:29 -0600

Passing by gravatar image

updated 2015-02-24 09:26:55 -0600

berak gravatar image

Is it possible to build OpenCV, including only the object detection module and excluding everything else ?

edit retag flag offensive close merge delete

Comments

3

you can disable building single modules like, e.g. cmake -D BUILD_opencv_objdetect=OFF

just be aware, that you can't build only objdetect, and not have core or imgproc, most of them depend on each other.

berak gravatar imageberak ( 2015-02-24 09:23:54 -0600 )edit

Thank you for your answer, where can I find the list of modules on which objdetect depends ?

Passing by gravatar imagePassing by ( 2015-02-24 09:32:28 -0600 )edit
2

see opencv/modules/objdetect/CmakeLists.txt

ocv_define_module(objdetect opencv_core opencv_imgproc opencv_ml OPTIONAL opencv_highgui)

so, that's core, imgproc, ml in this case

berak gravatar imageberak ( 2015-02-24 09:35:08 -0600 )edit

I want to do the same. What should i do?

valium123 gravatar imagevalium123 ( 2016-09-10 06:20:49 -0600 )edit

@valium123 please be more exact. what do you want to do?

berak gravatar imageberak ( 2016-09-10 06:45:23 -0600 )edit