detector = posenet.PoseEstimator;
First, read a test image.
I = imread('visionteam1.jpg');
imshow(I);
bbox = [182 74 303 404];
Iin = imresize(imcrop(I,bbox),detector.InputSize(1:2));
imshow(Iin);
To visualise the results we can superimpose the detected keypoints on the original image.
keypoints = detectPose(detector,Iin);
J = detector.visualizeKeyPoints(Iin,keypoints);
imshow(J);
Copyright 2020 The MathWorks, Inc.