Ask Your Question
0

Can not find cv_cpu_config.h file?

asked 2019-05-28 07:42:13 -0600

I want to build opencv_trancascade application. I see sources at opencv/source/app/trancascade. I have added all this source in Visual Studio and build. But I see error Cannot open include file: 'cv_cpu_config.h' I can not see any cv_cpu_config.h file in source. Anyone can help me solve this problem?

Best regard, Tung

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-05-28 08:53:16 -0600

berak gravatar image

the missing header file is in your build folder (it's generated from cmake)

I have added all this source in Visual Studio and build.

this might not work. you're supposed to build the apps along with the opencv libs from src, by enabling BUILD_opencv_apps=ON in cmake

edit flag offensive delete link more

Comments

Hi berak,

I have followed your instruction. BUILD_opencv_apps=ON and I can build all project at sources/apps except traincascade project. I meet many many error with this project. For example some syntax error: identifier 'CvFileStorge' in old_ml.hpp

Please tell me how to solve problem?

Tung Hoang gravatar imageTung Hoang ( 2019-05-28 20:44:48 -0600 )edit

which opencv version is it, exactly ?

(note, that the tools to train cascades are somewhat deprecated, and were removed from the current codebase (4.1.0, as of now)

berak gravatar imageberak ( 2019-05-29 04:16:36 -0600 )edit

I use version 4.1.0. OpenCV do not support train cascade in 4.1.0 version? So What exact version I can use train cascade?

Tung Hoang gravatar imageTung Hoang ( 2019-05-29 09:13:41 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-05-28 07:42:13 -0600

Seen: 466 times

Last updated: May 28 '19