Ask Your Question

Kingboom4's profile - activity

2016-11-24 04:21:15 -0600 received badge  Enthusiast
2016-11-23 06:34:09 -0600 received badge  Critic (source)
2016-11-23 06:23:08 -0600 commented question Using the opencv_contrib dnn module (too slow)

No problem, thanks for replying it is much appreciated. I did manage to run my code successfully yesterday - by simply compiling OpenBLAS from source for VS 2015 using CMake, which gave me a libopenblas.lib and libopenblas.dll which I used instead of the binary package .lib and .dll (did not change the include folder) - that seemed to do the trick and the program sucessfully compiled.

The concerning part is that I did not get a performance increase in regards to evaluation of the faces - it is still quite slow. I think it might be because I did not have all the options in CMake like you did, what are your thoughts? Additionally, I did use the options grouped and advanced but I still did not have the same options as you did - here is how my one looked like

2016-11-22 10:43:35 -0600 commented question Using the opencv_contrib dnn module (too slow)

Just a little update, I managed to compile OpenCV with OpenBLAS (I believe) by just giving the path to the include and the .lib. Then I simply added the OpenBLAS bin directory to the path (environment variables) containing the .dll. That solved the problem for missing libopenblas.dll, now I am getting this error, I have tried adding the missing .dll into the project - which did fix the missing .dll problem but then gave me a new error which is this. Any idea what is going on?

Thought: Could it be that I need to compile OpenBLAS from source using CMake and specify that it's for VS 14 x64?

2016-11-22 07:43:06 -0600 commented question Using the opencv_contrib dnn module (too slow)

I am not getting the same options as you are in cmake, what might I be doing wrong?

These are the options I am getting

BLAS search

Edit: I don't have the following options:

  1. EIGEN_INCLUDE_DIR
  2. None of the LAPACK
  3. None of the BLAS options including BLAS_openblas_LIBRARY

Having said that, I do have the OpenBLAS_INCLUDE_DIR and OpenBLAS_LIB options.

Any help will be greatly appreciated.

2016-11-21 11:26:03 -0600 commented question Using the opencv_contrib dnn module (too slow)

I have recompiled using Opencv.sln with cmake and with the option for opencv_dnn_WITH_BLAS and pointed the OpenBLAS bin, include and lib accordingly (I renamed the libopenblas.a.dll lib to libopenblas.lib), the issue I am running into now is that when I compile my code I get the error saying that libopenblas.lib is missing, all the other .libs are recognised. I have tried adding the .lib manually by using the property sheet in VS, I pointed to the lib folder of the OpenBLAS binary package in the "Additional Library Directories" field and adding the libopenblas.lib in the input. I am not sure what I am doing wrong, I feel like it might just be a linking issue.

Edit: I do apologise, I totally missed your last message, I'll give that a try.

2016-11-21 10:21:23 -0600 commented question Using the opencv_contrib dnn module (too slow)

Never mind, I think I figured it out, if I still run into problems I'll give you a shout, thanks a lot for helping me out.

2016-11-21 09:41:26 -0600 commented question Using the opencv_contrib dnn module (too slow)

Thanks for your reply LeBerger, OpenCV and opencv_contrib are compiled from source using CMake, I do apologise I didn't realise you were referring to OpenCV being compiled from source. Just one question how do I install OpenBLAS for windows? Or how do I ensure OpenBLAS is found by CMake? Do I just point to one of the folders inside the OpenBLAS binary package (bin, include or lib)? If so, which one? I do apologise in advance for asking this many questions but I am slightly lost at the moment.

2016-11-18 04:54:32 -0600 commented question Using the opencv_contrib dnn module (too slow)

I didn't use cmake to build OpenBLAS, I just used the binary package they provide for Windows on their site - is this not a good idea? I'm a little confused in regards to what you're referring to, do you mean use cmake to build OpenCV with the opencv_contrib modules (if so, the answer is yes) or do you mean OpenBLAS being built with cmake?

2016-11-17 12:14:15 -0600 commented question Using the opencv_contrib dnn module (too slow)

I have tried implementing OpenBLAS using the binary packages provided on the OpenBLAS site, I have included .lib and the include directory into my project. However, I am not sure whether that is the correct way of making opencv_contrib believe that I have OpenBLAS installed, the reason I say that is because inside the source code of the dnn module you have op_blas.cpp which is supposed to check for OpenBLAS but I have no clue how it would do that. I am just unsure as to how I am supposed to use OpenBLAS in this case.

In regards to how I know this is the answer, well I don't know but two separate people on the issue thread have said that they have used BLAS to get better performance.

2016-11-17 10:11:04 -0600 commented question Using the opencv_contrib dnn module (too slow)

Nope it's from this paper https://data.vision.ee.ethz.ch/cvl/rr... it works flawlessly but the implementation is just too slow.

2016-11-17 10:05:29 -0600 received badge  Student (source)
2016-11-17 10:02:03 -0600 asked a question Using the opencv_contrib dnn module (too slow)

I am using a caffemodel (trained for gender classification) with the dnn module of the opencv_contrib library. The issue I am having is that it is running pretty well but it is extremly slow, it takes up to 10 seconds (sometimes) for a face to be processed. I believe the issue is that there is a bottleneck present in the cv::gemm()function - highlighted in this issue https://github.com/opencv/opencv_cont.... According to the issue all you need to do is install OpenBLAS or MKL and the performance will increase, I have never used any of those libraries before, hence I am quite unsure how to approach this. Any guidance in regards to increasing the performance or how to setup a solution with OpenBLAS + opencv_contrib will be greatly appreciated.

This is my setup:

  • C++ VS 2015
  • OpenCV 3.1.0
  • Windows 10
2014-11-08 11:13:49 -0600 asked a question OpenCV with Python IDE suggestion.

Hey guys,

I am very new to OpenCV in general and I want to build a project using OpenCV-Python I have installed everything and configured according to this guide - http://docs.opencv.org/trunk/doc/py_tutorials/py_setup/py_setup_in_windows/py_setup_in_windows.html#additional-resources.

However, I am not sure how I would go on about creating a project, what IDE would I use?

Any help will be much appreciated.

Thank you.