-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Description
I got an error running the demo:Failed to link vertex and fragment shaders.
<template>
<div>
<img style="width: 100%" id="cat" src="../../assets/face.jpg" />
</div>
</template>
<script>
import * as posenet from '@tensorflow-models/posenet'
const imageScaleFactor = 0.5
const outputStride = 16
const flipHorizontal = false
export default {
data () {
return {}
},
methods: {
async estimatePoseOnImage (imageElement) {
const net = await posenet.load()
const pose = await net.estimateSinglePose(imageElement, imageScaleFactor, flipHorizontal, outputStride)
return pose
}
},
mounted: function () {
const imageElement = document.getElementById('cat')
const pose = this.estimatePoseOnImage(imageElement)
}
}
</script>
can you help me. thank you!
Metadata
Metadata
Assignees
Labels
No labels