Skip to Main Content
Advanced TypeScript Programming Projects
book

Advanced TypeScript Programming Projects

by Peter O'Hanlon
July 2019
Intermediate to advanced content levelIntermediate to advanced
416 pages
10h 6m
English
Packt Publishing
Content preview from Advanced TypeScript Programming Projects

Completing our pose detection component

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn TypeScript 3 by Building Web Applications

Learn TypeScript 3 by Building Web Applications

Sebastien Dubois, Alexis Georges

Publisher Resources

ISBN: 9781789133042Supplemental Content