Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
2465def8
Commit
2465def8
authored
May 23, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
parents
24cd5e21
9005e9ea
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
40 deletions
+23
-40
face.hpp
modules/face/include/opencv2/face.hpp
+4
-2
CMakeLists.txt
modules/sfm/src/libmv_light/libmv/base/CMakeLists.txt
+0
-10
CMakeLists.txt
...s/sfm/src/libmv_light/libmv/correspondence/CMakeLists.txt
+6
-3
CMakeLists.txt
modules/sfm/src/libmv_light/libmv/multiview/CMakeLists.txt
+4
-1
CMakeLists.txt
modules/sfm/src/libmv_light/libmv/numeric/CMakeLists.txt
+4
-3
CMakeLists.txt
.../sfm/src/libmv_light/libmv/simple_pipeline/CMakeLists.txt
+2
-3
fld_lines.cpp
modules/ximgproc/samples/fld_lines.cpp
+3
-18
No files found.
modules/face/include/opencv2/face.hpp
View file @
2465def8
...
...
@@ -162,7 +162,7 @@ public:
@param src The training images, that means the faces you want to learn. The data has to be
given as a vector\<Mat\>.
@param labels The labels corresponding to the images have to be given either as a vector\<int\>
or a
or a
Mat of type CV_32SC1.
The following source code snippet shows you how to learn a Fisherfaces model on a given set of
images. The images are read with imread and pushed into a std::vector\<Mat\>. The labels of each
...
...
@@ -175,6 +175,8 @@ public:
// holds images and labels
vector<Mat> images;
vector<int> labels;
// using Mat of type CV_32SC1
// Mat labels(number_of_samples, 1, CV_32SC1);
// images for first person
images.push_back(imread("person0/0.jpg", IMREAD_GRAYSCALE)); labels.push_back(0);
images.push_back(imread("person0/1.jpg", IMREAD_GRAYSCALE)); labels.push_back(0);
...
...
@@ -211,7 +213,7 @@ public:
@param src The training images, that means the faces you want to learn. The data has to be given
as a vector\<Mat\>.
@param labels The labels corresponding to the images have to be given either as a vector\<int\> or
a
a
Mat of type CV_32SC1.
This method updates a (probably trained) FaceRecognizer, but only if the algorithm supports it. The
Local Binary Patterns Histograms (LBPH) recognizer (see createLBPHFaceRecognizer) can be updated.
...
...
modules/sfm/src/libmv_light/libmv/base/CMakeLists.txt
deleted
100644 → 0
View file @
24cd5e21
# define the source files
SET
(
BASE_SRC
)
# define the header files (make the headers appear in IDEs.)
FILE
(
GLOB BASE_HDRS *.h
)
ADD_LIBRARY
(
base STATIC
${
BASE_SRC
}
${
BASE_HDRS
}
)
LIBMV_INSTALL_LIB
(
base
)
\ No newline at end of file
modules/sfm/src/libmv_light/libmv/correspondence/CMakeLists.txt
View file @
2465def8
...
...
@@ -8,6 +8,10 @@ FILE(GLOB CORRESPONDENCE_HDRS *.h)
ADD_LIBRARY
(
correspondence STATIC
${
CORRESPONDENCE_SRC
}
${
CORRESPONDENCE_HDRS
}
)
TARGET_LINK_LIBRARIES
(
correspondence multiview
)
TARGET_LINK_LIBRARIES
(
correspondence LINK_PRIVATE multiview
)
IF
(
TARGET Eigen3::Eigen
)
TARGET_LINK_LIBRARIES
(
correspondence LINK_PUBLIC Eigen3::Eigen
)
ENDIF
()
LIBMV_INSTALL_LIB
(
correspondence
)
\ No newline at end of file
LIBMV_INSTALL_LIB
(
correspondence
)
modules/sfm/src/libmv_light/libmv/multiview/CMakeLists.txt
View file @
2465def8
...
...
@@ -17,6 +17,9 @@ SET(MULTIVIEW_SRC conditioning.cc
FILE
(
GLOB MULTIVIEW_HDRS *.h
)
ADD_LIBRARY
(
multiview STATIC
${
MULTIVIEW_SRC
}
${
MULTIVIEW_HDRS
}
)
TARGET_LINK_LIBRARIES
(
multiview
${
GLOG_LIBRARY
}
numeric
)
TARGET_LINK_LIBRARIES
(
multiview LINK_PRIVATE
${
GLOG_LIBRARY
}
numeric
)
IF
(
TARGET Eigen3::Eigen
)
TARGET_LINK_LIBRARIES
(
multiview LINK_PUBLIC Eigen3::Eigen
)
ENDIF
()
LIBMV_INSTALL_LIB
(
multiview
)
modules/sfm/src/libmv_light/libmv/numeric/CMakeLists.txt
View file @
2465def8
...
...
@@ -7,6 +7,8 @@ FILE(GLOB NUMERIC_HDRS *.h)
ADD_LIBRARY
(
numeric STATIC
${
NUMERIC_SRC
}
${
NUMERIC_HDRS
}
)
TARGET_LINK_LIBRARIES
(
numeric
)
IF
(
TARGET Eigen3::Eigen
)
TARGET_LINK_LIBRARIES
(
numeric LINK_PUBLIC Eigen3::Eigen
)
ENDIF
()
LIBMV_INSTALL_LIB
(
numeric
)
\ No newline at end of file
LIBMV_INSTALL_LIB
(
numeric
)
modules/sfm/src/libmv_light/libmv/simple_pipeline/CMakeLists.txt
View file @
2465def8
...
...
@@ -17,6 +17,6 @@ FILE(GLOB SIMPLE_PIPELINE_HDRS *.h)
ADD_LIBRARY
(
simple_pipeline STATIC
${
SIMPLE_PIPELINE_SRC
}
${
SIMPLE_PIPELINE_HDRS
}
)
TARGET_LINK_LIBRARIES
(
simple_pipeline multiview
${
CERES_LIBRARIES
}
)
TARGET_LINK_LIBRARIES
(
simple_pipeline
LINK_PRIVATE
multiview
${
CERES_LIBRARIES
}
)
LIBMV_INSTALL_LIB
(
simple_pipeline
)
\ No newline at end of file
LIBMV_INSTALL_LIB
(
simple_pipeline
)
modules/ximgproc/samples/fld_lines.cpp
View file @
2465def8
...
...
@@ -27,10 +27,6 @@ int main(int argc, char** argv)
return
-
1
;
}
// Create LSD detector
Ptr
<
LineSegmentDetector
>
lsd
=
createLineSegmentDetector
();
vector
<
Vec4f
>
lines_lsd
;
// Create FLD detector
// Param Default value Description
// length_threshold 10 - Segments shorter than this will be discarded
...
...
@@ -57,29 +53,18 @@ int main(int argc, char** argv)
vector
<
Vec4f
>
lines_fld
;
// Because of some CPU's power strategy, it seems that the first running of
// an algorithm takes much longer. So here we run
both of the algorithmes 10
// t
imes to see each
algorithm's processing time with sufficiently warmed-up
// an algorithm takes much longer. So here we run
the algorithm 10 times
// t
o see the
algorithm's processing time with sufficiently warmed-up
// CPU performance.
for
(
int
run_count
=
0
;
run_count
<
10
;
run_count
++
)
{
lines_lsd
.
clear
();
int64
start_lsd
=
getTickCount
();
lsd
->
detect
(
image
,
lines_lsd
);
// Detect the lines with LSD
double
freq
=
getTickFrequency
();
double
duration_ms_lsd
=
double
(
getTickCount
()
-
start_lsd
)
*
1000
/
freq
;
std
::
cout
<<
"Elapsed time for LSD: "
<<
duration_ms_lsd
<<
" ms."
<<
std
::
endl
;
lines_fld
.
clear
();
int64
start
=
getTickCount
();
// Detect the lines with FLD
fld
->
detect
(
image
,
lines_fld
);
double
duration_ms
=
double
(
getTickCount
()
-
start
)
*
1000
/
freq
;
std
::
cout
<<
"E
al
psed time for FLD "
<<
duration_ms
<<
" ms."
<<
std
::
endl
;
std
::
cout
<<
"E
la
psed time for FLD "
<<
duration_ms
<<
" ms."
<<
std
::
endl
;
}
// Show found lines with LSD
Mat
line_image_lsd
(
image
);
lsd
->
drawSegments
(
line_image_lsd
,
lines_lsd
);
imshow
(
"LSD result"
,
line_image_lsd
);
// Show found lines with FLD
Mat
line_image_fld
(
image
);
...
...
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