Skip to content

Commit f4777c4

Browse files
author
tianzhao
committed
show video preview
1 parent 145f043 commit f4777c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class PoseEstimator {
155155
const timestamp = performance.now() / 1000.0;
156156

157157
this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
158-
// 不绘制视频背景,只显示姿态估计结果
158+
this.ctx.drawImage(this.video, 0, 0, this.canvas.width, this.canvas.height);
159159

160160
frameCount++;
161161

0 commit comments

Comments
 (0)