July 2019
Intermediate to advanced
416 pages
10h 6m
English
Earlier, we created an ImageClassifier class to perform our image classification. In keeping with the spirit of this class, we are now going to write a PoseClassifier class to manage the physical pose detection:
export class PoseClassifier {}
We are going to set up two private members for our class. The model is a PoseNet model, which will be populated when we call the relevant load method. DrawPose is the class we just defined:
private model: PoseNet | null = null;private drawPose: DrawPose | null = null;
Before we go any further into our pose detection code, we should start to get an understanding of what pose detection is, some of the things it is good for, and what some of the constraints are.
Read now
Unlock full access