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
673900a8
Commit
673900a8
authored
Aug 21, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1724 from hrnr:video_remove_ransac
parents
dc6af711
09c5e8cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
CMakeLists.txt
modules/face/CMakeLists.txt
+1
-1
trainFacemark.cpp
modules/face/src/trainFacemark.cpp
+2
-2
No files found.
modules/face/CMakeLists.txt
View file @
673900a8
...
...
@@ -2,7 +2,7 @@ set(the_description "Face recognition etc")
ocv_define_module
(
face opencv_core
opencv_imgproc
opencv_objdetect
opencv_
video
# estimateRigidTransform
() (trainFacemark)
opencv_
calib3d
# estimateAffinePartial2D
() (trainFacemark)
opencv_photo
# seamlessClone() (face_swap sample)
WRAP python java
)
...
...
modules/face/src/trainFacemark.cpp
View file @
673900a8
...
...
@@ -4,7 +4,7 @@
#include "precomp.hpp"
#include "face_alignmentimpl.hpp"
#include "opencv2/
video/tracking
.hpp"
#include "opencv2/
calib3d
.hpp"
#include <climits>
using
namespace
std
;
...
...
@@ -123,7 +123,7 @@ bool FacemarkKazemiImpl :: getRelativePixels(vector<Point2f> sample,vector<Point
CV_Error
(
Error
::
StsBadArg
,
error_message
);
}
Mat
transform_mat
;
transform_mat
=
estimate
RigidTransform
(
meanshape
,
sample
,
fals
e
);
transform_mat
=
estimate
AffinePartial2D
(
meanshape
,
sampl
e
);
unsigned
long
index
;
for
(
unsigned
long
i
=
0
;
i
<
pixel_coordinates
.
size
();
i
++
)
{
if
(
!
nearest
.
empty
())
...
...
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