您的位置:首页 > 汽车 > 新车 > 南京网页设计哪家好_php编程用什么软件_百度收录查询api_今日军事新闻视频

南京网页设计哪家好_php编程用什么软件_百度收录查询api_今日军事新闻视频

2024/10/23 13:17:51 来源:https://blog.csdn.net/weixin_40466351/article/details/141021532  浏览:    关键词:南京网页设计哪家好_php编程用什么软件_百度收录查询api_今日军事新闻视频
南京网页设计哪家好_php编程用什么软件_百度收录查询api_今日军事新闻视频

一、opencv 官网

https://opencv.org/

二、opencv是什么

在这里插入图片描述

三、opencvjs前端使用网站

https://docs.opencv.org/4.x/d0/d84/tutorial_js_usage.html

https://docs.opencv.org/4.x/d5/d10/tutorial_js_root.html

四、opencvjs demo 举例

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello OpenCV.js</title>
</head>
<body>
<h2>Hello OpenCV.js</h2>
<p id="status">OpenCV.js is loading...</p>
<div><div class="inputoutput"><img id="imageSrc" alt="No Image" /><div class="caption">imageSrc <input type="file" id="fileInput" name="file" /></div></div><div class="inputoutput"><canvas id="canvasOutput" ></canvas><div class="caption">canvasOutput</div></div>
</div>
<script type="text/javascript">
let imgElement = document.getElementById('imageSrc');
let inputElement = document.getElementById('fileInput');
inputElement.addEventListener('change', (e) => {imgElement.src = URL.createObjectURL(e.target.files[0]);
}, false);imgElement.onload = function() {let mat = cv.imread(imgElement);cv.imshow('canvasOutput', mat);mat.delete();
};var Module = {// https://emscripten.org/docs/api_reference/module.html#Module.onRuntimeInitializedonRuntimeInitialized() {document.getElementById('status').innerHTML = 'OpenCV.js is ready.';}
};
</script>
<script async src="https://docs.opencv.org/4.x/opencv.js" type="text/javascript"></script></body>
</html>

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com