Ask Your Question

bruceyo's profile - activity

2015-05-12 08:33:33 -0600 asked a question Debug Assertion Failed! _pFirstBlock == pHead

I am try to develop a MFC application with the using of OpenCV 2.4.10. The MFC application requires use the Multi-threaded Debug (/MTd) instead of MDd It give the error when my application runs as the pictures show below:

image description

After clicked the retry it broke at the dbgheap.c as below:

image description

Could someone give some help on how to solve the problem as I need the application debug at the MTd mode. Thanks!! @StevenPuttemans

2015-04-24 19:59:40 -0600 answered a question Is there a shoulder-head detect model in OpenCV?

I think training a head detector in all directions (front, two sides, back, up-down) together is not the solution, as current solutions usually use only one direction (front, back). I am try to train them separately, and later on, add their detecting result together... any other ideas @StevenPuttemans? Thanks!

2015-04-24 04:30:37 -0600 commented answer Build OpenCV 3.0 with Visual Studio 2013 ?

But my opencv-master version was download on Apr. 14, 2015, which should be after the fixed date. I built it for more than 4 hours... As you said "fixed", is that mean it will be loaded successfully if I use my proper self-trained haarcascade model?

BTW, the SVM on OpenCV3 just worked, but the result is very poor as I only use 62 positive samples and 100 negative samples. Thousands of samples will improve the detection results? I am try to detect a head, not face. Thanks!

2015-04-23 21:59:58 -0600 commented answer Build OpenCV 3.0 with Visual Studio 2013 ?

It's really depend on your clues~ Thanks! but found that there is no cuda300.lib and cuda300d.lib... is that part removed from the oprncv-master?

And the .xml haarcascades classifiers still cannot be loaded, which works fine in the 2410 version...

BTW, what is the difference between the GPU version to the normal version? Are they trained in a different way or what else?

2015-04-23 03:32:32 -0600 commented answer Build OpenCV 3.0 with Visual Studio 2013 ?

I thinks its working now (after installed the Matlab 2014b), build successfully, but still build in the release mode. Thanks!

2015-04-23 03:29:57 -0600 commented answer How to train a svm?

@StevenPuttemans I have trained my SVM classifier, but how can I transfer is to a detector in openCV3.0? As I can not get the alpha, sv_count and rho from the trained SVM.xml defined as below:

Ptr<ml::SVM> svm = ml::SVM::create(params);
2015-04-22 05:22:48 -0600 received badge  Enthusiast
2015-04-21 21:12:26 -0600 commented answer Build OpenCV 3.0 with Visual Studio 2013 ?

Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named 'numpy'

            Found PythonInterp: E:/Program Files (x86)/python34/python.exe (found suitable version "3.4.2", minimum required is "3.4") 

        Traceback (most recent call last):
          File "<string>", line 1, in <module>
        ImportError: No module named 'numpy'

        ERROR: 
        The system was unable to find the specified registry key or value.

It find the python automatically. I uninstalled the Matlab, but turned out the error above. Is that mean errors in cmake will lead to failure of Build in MSVC2013?@StevenPuttemans

2015-04-21 03:39:26 -0600 commented answer Build OpenCV 3.0 with Visual Studio 2013 ?

@StevenPuttemans it that the problem of the installed Matlab?

2015-04-17 04:34:28 -0600 commented answer Build OpenCV 3.0 with Visual Studio 2013 ?

I just ran it in administrator mode, it turns out the error below:

Error   655 error : MEXEXT: Unsupported platform.   D:\software\OpenCV\build\modules\core\CUSTOMBUILD   opencv_core

Output:
8>CUSTOMBUILD : error : MEXEXT: Unsupported platform.
8>  
8>  -- Could NOT find Matlab (missing:  MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) 
8>  -- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file

Cmake config output:
  Matlab:
    mex:                         NO

and there other ImportErrors:
ImportError: No module named 'numpy'

'E:\Program' is not recognized as an internal or external command,
operable program or batch file.
Error: MEXEXT: Unsupported p
2015-04-16 21:00:32 -0600 commented answer OpenCV 3.0 problems building dlls and libs

Please refer to the question in the link: link text Thanks

2015-04-16 20:56:22 -0600 answered a question Build OpenCV 3.0 with Visual Studio 2013 ?

My error is similar with yours. Later on it will generate many LNK errors. Maybe this is what I can found from the Output window. @StevenPuttemans

8>  CMake Error at cuda_compile_generated_gpu_mat.cu.obj.cmake:206 (message):
8>    Error generating
8>    D:/software/OpenCV/build/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/Debug/cuda_compile_generated_gpu_mat.cu.obj
8>  
8>  
5>  jidctflt.c
8>  Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile.dir/src/cuda/Debug/cuda_compile_generated_gpu_mat.cu.obj
8>CUSTOMBUILD : nvcc warning : The 'compute_11', 'compute_12', 'compute_13', 'sm_11', 'sm_12', and 'sm_13' architectures are deprecated, and may be removed in a future release.
8>  
8>  Failed to run C:\Users\BRUCE_~1\AppData\Local\Temp/tmpxft_00001920_00000000-1.bat (Access is denied.
8>  
8>  
8>  ).
8>  
8>  nvcc fatal   : Could not set up the environment for Microsoft Visual Studio using 'E:/Program Files (x86)/Visual Studio 2013/VC/bin/../../VC/bin/amd64/vcvars64.bat'
8>  
8>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 1.
5>  jidctfst.c
2015-04-16 03:03:34 -0600 received badge  Editor (source)
2015-04-16 02:34:07 -0600 commented answer OpenCV 3.0 problems building dlls and libs

When I not check the WITH_CUDA, MSVC2013 build the master-opencv successfully. What cuda toolkit version should I use? I am using the Cuda6.5 now. @StevenPuttemans

2015-04-16 00:06:47 -0600 answered a question OpenCV 3.0 problems building dlls and libs

This also happened to me even I upgrade the cmake version to 3.2.2. My notebook developing environment is win8.1, VS2013 Ultimate, 64bit. I choose the Visual Studio 12 2013 Win64 generator.

After Click Configure, the information is as below:

found IPP (ICV version): 8.2.1 [8.2.1]
at: D:/software/OpenCV/opencv-master/3rdparty/ippicv/unpack/ippicv_win
CUDA detected: 6.5
CUDA NVCC target flags: -gencode;arch=compute_11,code=sm_11;-gencode;arch=compute_12,code=sm_12;-gencode;arch=compute_13,code=sm_13;-gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_20,code=sm_21;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_30,code=compute_30
Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake
Found PythonInterp: E:/Program Files (x86)/python34/python.exe (found suitable version "3.4.2", minimum required is "2.7") 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named 'numpy'

Found PythonInterp: E:/Program Files (x86)/python34/python.exe (found suitable version "3.4.2", minimum required is "3.4") 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named 'numpy'

'E:\Program' is not recognized as an internal or external command,
operable program or batch file.

Error: MEXEXT: Unsupported platform. 

Could NOT find Matlab (missing:  MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) 
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file

General configuration for OpenCV 3.0.0-dev =====================================
  Version control:               unknown

  Platform:
    Host:                        Windows 6.2 AMD64
    CMake:                       3.2.2
    CMake generator:             Visual Studio 12 2013 Win64
    CMake build tool:            C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe
    MSVC:                        1800

  C/C++:
    Built as dynamic libs?:      YES
    C++ Compiler:                E:/Program Files (x86)/Visual Studio 2013/VC/bin/x86_amd64/cl.exe  (ver 18.0.30723.0)
    C++ flags (Release):         /DWIN32 /D_WINDOWS /W4 /GR /EHa  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /wd4251 /wd4324 /MP4  /MD /O2 /Ob2 /D NDEBUG  /Zi
    C++ flags (Debug):           /DWIN32 /D_WINDOWS /W4 /GR /EHa  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /wd4251 /wd4324 /MP4  /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 
    C Compiler:                  E:/Program Files (x86)/Visual Studio 2013/VC/bin/x86_amd64/cl.exe
    C flags (Release):           /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi    /MP4  /MD /O2 /Ob2 /D NDEBUG  /Zi
    C flags (Debug):             /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi    /MP4  /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 
    Linker flags (Release):      /machine:x64  /INCREMENTAL:NO  /debug
    Linker flags (Debug):        /machine:x64  /debug /INCREMENTAL 
    Precompiled headers:         YES

  OpenCV modules:
    To be built:                 hal cudev core cudaarithm flann imgproc ml video cudabgsegm cudafilters cudaimgproc cudawarping imgcodecs photo shape videoio cudacodec highgui objdetect ts features2d calib3d cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo stitching superres videostab
    Disabled:                    world
    Disabled by dependency:      -
    Unavailable:                 androidcamera java python2 python3 viz

  Windows RT ...
(more)
2015-04-15 09:38:44 -0600 commented answer Unhandled exception after run in face detection

Got it with thanks!

2015-04-15 09:10:13 -0600 commented answer Unhandled exception after run in face detection

Very appreciate your reply. That helped me. You expert in OpenCV! May I email you sometime when faced with some tricky problems? Best regards!

2015-04-15 08:57:31 -0600 commented answer Unhandled exception after run in face detection

Is that mean the OpenCV3.0 has that bug? I have just tried the 2.4.10 version, works fine... So, I have to build the OpenCV from the GitHub by myself as there is only beta verison now. Do you know when will the real version released? And are another approach could detect the head more quickly? Many thanks for your efficient reply. Warm regards!

2015-04-15 08:23:06 -0600 commented answer Unhandled exception after run in face detection

I am using the Ceemple (OpenCV3.0). It loaded correctly. Only haarcascade_frontalface_alt.xml classifier works fine. All the others has the same problem. I am trying to test it on OpenCV2.4.10. Grateful you replying me. Thanks!

2015-04-15 03:40:38 -0600 received badge  Critic (source)
2015-04-15 03:39:44 -0600 commented answer Unhandled exception after run in face detection

Same error with you, I think the problem is at eyes_cascade.detectMultiScale(faceROI, eyes, 1.1, 2, 0|CV_HAAR_SCALE_IMAGE, Size(40, 40)); But, why is works when I commented the code for eye detection, as it work fine for only face detection.

2015-04-15 03:38:27 -0600 received badge  Supporter (source)