javascript - 在 three.js 上覆盖视频提要
问题描述
我正在使用以下代码在three.js 之上覆盖视频提要。
<style>
body {
margin: 0;
overflow: hidden;
}
#canvas {
width: 100%;
height: 100%;
padding: 0px;
position: static;
/* fixed or static */
}
</style>
<body>
<img src="{{ url_for('video_feed') }}" style="width: 20%;height: 20%;">
<div id="canvas"></div>
<script src="{{ url_for('static', filename='js/main.js') }}"></script>
</body>
如何在画布的右上角覆盖 img 标签?
解决方案
推荐阅读
- react-native - “Stream”在运行时是只读错误(将 react-native 升级到 0.56 后)
- javascript - Javascript中回调函数内的参数
- vb.net - 无法加载数据Mysql并在VB中显示错误“不允许连接主机”
- c - 可以使用枚举来绑定 c 整数范围吗?
- angular - 如何在 Angular 4 模块中导出简单的 TypeScript 类?
- javascript - 自定义迭代器不适用于数组对象
- javascript - 在 redux 中处理异步操作错误的最佳实践是什么?
- ros - ROS kinetic arch linux安装
- ruby-on-rails - 如何将我的模型关联到逃生室管理轨道应用程序?
- mysql - 分组/组合行并保存不为空的数据