Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
face_detect
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiajunjie
face_detect
Commits
b810c2d8
Commit
b810c2d8
authored
Dec 12, 2019
by
jiajunjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify keypoint code
parent
976f3069
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
CMakeLists.txt
c++/keypoint/CMakeLists.txt
+4
-4
keypoint.cpp
c++/keypoint/src/keypoint.cpp
+1
-1
test-keypoint.py
examples/python/test-keypoint.py
+2
-2
libkeypoint.so
library/ubuntux64/libkeypoint.so
+0
-0
No files found.
c++/keypoint/CMakeLists.txt
View file @
b810c2d8
...
...
@@ -5,12 +5,12 @@ project(keypoint)
SET
(
LIBRARY_OUTPUT_PATH
${
PROJECT_BINARY_DIR
}
)
# vars
set
(
DLIB_INCLUDE
../..
/3rdparty/dlib19.12/include
)
set
(
DLIB_LIBPATH /
root/usr/junjie/face_detect_git/3rdparty/dlib19.12/centos
/
)
set
(
DLIB_INCLUDE
/home/uboo/project/uboo/face_detect
/3rdparty/dlib19.12/include
)
set
(
DLIB_LIBPATH /
home/uboo/project/uboo/face_detect/3rdparty/dlib19.12/ubuntu/dynamic
/
)
set
(
DLIB_LIBS dlib
)
set
(
OPENCV_INCLUDE
../../3rdparty/opencv4.1.0-centos
-x64/include/
)
set
(
OPENCV_LIBPATH
../../3rdparty/opencv4.1.0-centos
-x64/lib/
)
set
(
OPENCV_INCLUDE
/home/uboo/project/uboo/opencv4.1.0-ubuntu
-x64/include/
)
set
(
OPENCV_LIBPATH
/home/uboo/project/uboo/opencv4.1.0-ubuntu
-x64/lib/
)
set
(
OPENCV_LIBS opencv_highgui opencv_core opencv_imgproc opencv_videoio opencv_objdetect opencv_imgcodecs
)
# compile flags
...
...
c++/keypoint/src/keypoint.cpp
View file @
b810c2d8
...
...
@@ -48,7 +48,7 @@ struct face_detect_instance
std
::
shared_ptr
<
face_param
>
_param
;
};
void
*
face_
beauty_init
(
void
*
face_
keypoint_mode_load
(
const
char
*
modeName
)
{
...
...
examples/python/test-keypoint.py
View file @
b810c2d8
...
...
@@ -5,10 +5,10 @@ import cv2
import
dlib
detector
=
dlib
.
get_frontal_face_detector
()
predictor
=
dlib
.
shape_predictor
(
'/home/uboo/project/uboo/face_detect
_git
/models/uboo_face_keypoint_68_landmarks.dat'
)
predictor
=
dlib
.
shape_predictor
(
'/home/uboo/project/uboo/face_detect/models/uboo_face_keypoint_68_landmarks.dat'
)
# cv2读取图像
img
=
cv2
.
imread
(
"/home/uboo/project/uboo/face_detect
_git
/image/face-junjie.jpg"
)
img
=
cv2
.
imread
(
"/home/uboo/project/uboo/face_detect/image/face-junjie.jpg"
)
cv2
.
namedWindow
(
"img"
,
2
)
# 取灰度
img_gray
=
cv2
.
cvtColor
(
img
,
cv2
.
COLOR_RGB2GRAY
)
...
...
library/ubuntux64/libkeypoint.so
0 → 100755
View file @
b810c2d8
File added
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