hrnetObjectKeypointDetector
Description
The hrnetObjectKeypointDetector
object creates a high
resolution deep learning network (HRNet) object keypoint detector for detecting object
keypoints in an image. Using this object, you can:
Create a pretrained HRNet object keypoint detector by using HRNet deep learning networks trained on the COCO keypoint detection data set.
Create a custom HRNet object keypoint detector by using a pretrained HRNet deep learning network.
Creation
Syntax
Description
Pretrained HRNet Object Keypoint Detector
creates a default pretrained HRNet object keypoint detector. To create the default HRNet
object keypoint detector, MATLAB uses an HRNet deep learning network, HRNet-W32, trained
on the COCO keypoint detection data set. In an HRNet-W32 network, the last three stages
of the high-resolution subnetworks have 32 convolved feature maps. For more information
about HRNet architecture, see Getting Started with HRNet.detector
= hrnetObjectKeypointDetector
Custom HRNet Object Keypoint Detector
creates a pretrained HRNet object detector, and configures it to perform transfer
learning using a specified set of keypoint classes. For optimal results, you must train
the detector on new training images before performing detection.detector
= hrnetObjectKeypointDetector(name
,keypointClassNames
)
sets the detector
= hrnetObjectKeypointDetector(name
,keypointClassNames
,Name=Value
)ModelName
,
InputSize
,
KeypointConnections
and
Threshold
properties
of the object keypoint detector using one or more name-value arguments.
Example:
hrnetObjectKeypointDetector(name,keypointClassNames,ModelName="customDetector")
sets the name for the object detector to "customDetector"
.
Note
This functionality requires Deep Learning Toolbox™ and the Computer Vision Toolbox™ Model for Object Keypoint Detection. You can download and install the Computer Vision Toolbox Model for Object Keypoint Detection from Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.
Input Arguments
Properties
Object Functions
detect | Detect object keypoints using HRNet object keypoint detector |
visibleKeypoints | Extract visible keypoints from keypoints detected by HRNet object keypoint detector |
Examples
Extended Capabilities
Version History
Introduced in R2023b