Toggle navigation
Toggle navigation
This project
Loading...
Sign in
조수연
/
Find_your_own_personal_color
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
starbucksdolcelatte
2019-04-05 14:32:09 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2a3f3c93b667360cdb872d21b9f23a6f8c68c8bd
2a3f3c93
1 parent
2ce4e554
Tried using the class 'DetectFace'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
main.py
main.py
0 → 100644
View file @
2a3f3c9
import
cv2
from
detect_face
import
DetectFace
image
=
"res/irene.jpg"
# Create an instance
df
=
DetectFace
(
"shape_predictor_68_face_landmarks.dat"
,
image
)
# Try: Extract mouth part
mouth
=
df
.
extract_face_part
(
df
.
mouth
)
cv2
.
imshow
(
"Mouth"
,
mouth
)
cv2
.
waitKey
(
0
)
# Try: Extract right eye part
r_eye
=
df
.
extract_face_part
(
df
.
right_eye
)
cv2
.
imshow
(
"Right eye"
,
r_eye
)
cv2
.
waitKey
(
0
)
Please
register
or
login
to post a comment