Commit 28abf7c0 authored by nazarf's avatar nazarf

write read me and configure mode

parent 17596041
Pipeline #35 canceled with stages
......@@ -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)
......
# 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment