Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
ea454e6e
Commit
ea454e6e
authored
Oct 04, 2011
by
Maria Dimashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uncommented the samples parts compiled under MSVC
parent
b71bfef7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
latentsvm_multidetect.cpp
samples/cpp/latentsvm_multidetect.cpp
+17
-17
No files found.
samples/cpp/latentsvm_multidetect.cpp
View file @
ea454e6e
...
...
@@ -4,7 +4,7 @@
#include "opencv2/contrib/contrib.hpp"
#ifdef WIN32
//
#include <io.h>
#include <io.h>
#else
#include <dirent.h>
#endif
...
...
@@ -62,22 +62,22 @@ void readDirectory( const string& directoryName, vector<string>& filenames, bool
filenames
.
clear
();
#ifdef WIN32
//
struct _finddata_t s_file;
//
string str = directoryName + "\\*.*";
//
intptr_t h_file = _findfirst( str.c_str(), &s_file );
// if( h_file == -1L
)
//
{
//
do
//
{
//
if( addDirectoryName )
// filenames.push_back(directoryName + "/
" + s_file.name);
//
else
//
filenames.push_back((string)s_file.name);
//
}
//
while( _findnext( h_file, &s_file ) == 0 );
//
}
//
_findclose( h_file );
struct
_finddata_t
s_file
;
string
str
=
directoryName
+
"
\\
*.*"
;
intptr_t
h_file
=
_findfirst
(
str
.
c_str
(),
&
s_file
);
if
(
h_file
!=
static_cast
<
intptr_t
>
(
-
1.0
)
)
{
do
{
if
(
addDirectoryName
)
filenames
.
push_back
(
directoryName
+
"
\\
"
+
s_file
.
name
);
else
filenames
.
push_back
((
string
)
s_file
.
name
);
}
while
(
_findnext
(
h_file
,
&
s_file
)
==
0
);
}
_findclose
(
h_file
);
#else
DIR
*
dir
=
opendir
(
directoryName
.
c_str
()
);
if
(
dir
!=
NULL
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment