MCPcopy Create free account
hub / github.com/Francis-Rings/StableAnimator / get_image_pose

Function get_image_pose

DWPose/skeleton_extraction.py:181–187  ·  view source on GitHub ↗
(ref_image_path)

Source from the content-addressed store, hash-verified

179
180
181def get_image_pose(ref_image_path):
182 ref_image = cv2.imread(ref_image_path)
183 ref_image = cv2.cvtColor(ref_image, cv2.COLOR_BGR2RGB)
184 height, width, _ = ref_image.shape
185 ref_pose = dwpose_detector_aligned(ref_image)
186 pose_img = draw_pose(ref_pose, height, width)
187 return np.array(pose_img)
188
189if __name__ == '__main__':
190 parser = argparse.ArgumentParser(description="Skeleton extraction from images.")

Callers

nothing calls this directly

Calls 1

draw_poseFunction · 0.70

Tested by

no test coverage detected