Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification on which version of OpenCV #1280

Open
joshuajnoble opened this issue Jul 26, 2018 · 4 comments
Open

Clarification on which version of OpenCV #1280

joshuajnoble opened this issue Jul 26, 2018 · 4 comments

Comments

@joshuajnoble
Copy link

joshuajnoble commented Jul 26, 2018

I've been reading through this thread opencv/opencv#10963 and seeing lots of discussion #500 and #414 but I can't compile with OpenCV 3.4.0, I get the errors:

1>------ Build started: Project: darknet, Configuration: Debug x64 ------ 1>http_stream.cpp 1>c:\users\winbase\code\opencv\build\include\opencv2\flann\matrix.h(70): warning C4003: not enough actual parameters for macro 'free' 1>c:\users\winbase\code\opencv\build\include\opencv2\flann\matrix.h(70): error C2059: syntax error: ',' 1>c:\users\winbase\code\opencv\build\include\opencv2\flann\matrix.h(87): note: see reference to class template instantiation 'cvflann::Matrix<T>' being compiled 1>c:\users\winbase\code\opencv\build\include\opencv2\core\cuda.hpp(106): error C2059: syntax error: 'constant'

from matrix.h

/** * Convenience function for deallocating the storage data. */ CV_DEPRECATED void free() { fprintf(stderr, "The cvflann::Matrix<T>::free() method is deprecated " "and it does not do any memory deallocation any more. You are" "responsible for deallocating the matrix memory (by doing" "'delete[] matrix.data' for example)"); }

Is there any guidance on which version of OpenCV 3 is compatible with Darknet? I can compile with 2.4.13 but in running darknet detector train it always crashes on try to allocate workspace. Without OpenCV I can train without problems. I'm not sure how to get the OpenCV compatibility. I'm using Windows 10, Visual Studio 2017, CUDA 9.2, and the following flags:

OPENCV;CUDNN;_CRTDBG_MAP_ALLOC;_MBCS;_TIMESPEC_DEFINED;_CRT_SECURE_NO_WARNINGS;_CRT_RAND_S;GPU;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)

@AlexeyAB
Copy link
Owner

Try to use OpenCV 3.3.0 https://github.com/opencv/opencv/archive/3.3.0.zip

@joshuajnoble
Copy link
Author

OpenCV 3.3.0 errors out with:

1>c:\users\winbase\code\opencv\build\include\opencv2\core\cvdef.h(58): error C2061: syntax error: identifier 'cv' (compiling source file ..\..\src\voxel.c)

The C++ is still getting brought into the compile somehow, not sure how other folks are getting around this.

@AshleyRoth
Copy link

@AlexeyAB Hello! Can you explain me please. For what it answers here // get_region_boxes (l, 1, 1, thresh, probs, boxes, 0, 0); and why is now commented on? Not used or replaced?

@vinjn
Copy link

vinjn commented Oct 2, 2018

I am using OpenCV 3.4.0 for months :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants