Getting back to our Pose.vue component, we now have to fill in the script section. We are going to need the following import statements and class definition for our component (remember that I promised we would build this class up from scratch). Again, we can see the use of @Component to give us a component registration. We see this time and time again with Vue components:
import { Component, Vue } from 'vue-property-decorator';import {PoseClassifier} from '@/Models/PoseClassifier';import {Keypoint} from '@tensorflow-models/posenet';@Componentexport default class Pose extends Vue {}
We have reached the point where we can write our Classify method, which will retrieve the image and canvas when they have ...