Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
body skeleton detectopn
Project
Project
Details
Activity
Releases
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
nazarf
body skeleton detectopn
Commits
28abf7c0
Commit
28abf7c0
authored
Dec 28, 2019
by
nazarf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
write read me and configure mode
parent
17596041
Pipeline
#35
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
OpenPoseVideo.py
OpenPoseVideo.py
+4
-4
README.md
README.md
+11
-0
No files found.
OpenPoseVideo.py
View file @
28abf7c0
...
...
@@ -2,7 +2,7 @@ import cv2
import
time
import
numpy
as
np
MODE
=
"
MPI
"
MODE
=
"
COCO
"
if
MODE
is
"COCO"
:
protoFile
=
"pose/coco/pose_deploy_linevec.prototxt"
...
...
@@ -22,7 +22,7 @@ inHeight = 368
threshold
=
0.1
input_source
=
"output-roy.avi"
input_source
=
0
cap
=
cv2
.
VideoCapture
(
input_source
)
hasFrame
,
frame
=
cap
.
read
()
...
...
@@ -83,8 +83,8 @@ while cv2.waitKey(1) < 0:
cv2
.
putText
(
frame
,
"time taken = {:.2f} sec"
.
format
(
time
.
time
()
-
t
),
(
50
,
50
),
cv2
.
FONT_HERSHEY_COMPLEX
,
.8
,
(
255
,
50
,
0
),
2
,
lineType
=
cv2
.
LINE_AA
)
# cv2.putText(frame, "OpenPose using OpenCV", (50, 50), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 50, 0), 2, lineType=cv2.LINE_AA)
#
cv2.imshow('Output-Keypoints', frameCopy)
cv2
.
imshow
(
'Output-Skeleton'
,
frame
)
cv2
.
imshow
(
'Output-Keypoints'
,
frameCopy
)
#
cv2.imshow('Output-Skeleton', frame)
vid_writer
.
write
(
frame
)
...
...
README.md
View file @
28abf7c0
# HumanBody-Skeleton-Detection-using-OpenCV
run:
-
python OpenPoseVideo.py
-
python OpenPoseImage.py
Configure:
Eit mode "COCO" or "MPI" in file
Edit variable input_source on file name or if you need use web cam write input_source = 0
quit = press key q
\ No newline at end of file
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