node-red-contrib-smartnode
Version:
this project is a nodejs package for making the nodered support the Smart Device development. the pacakge require node-red enviroment.
37 lines (31 loc) • 1.81 kB
HTML
<!--
Copyright 2015 Maker Collider
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<script type="text/xred" data-help-name="FaceDetect">
<h3 id="识别"><a name="识别" href="#识别"></a>识别</h3>
<p>本节点使用摄像头和OpenCV进行人脸识别,在光照充足的情况下,可以识别多个人脸。</p>
<h4 id="配置参数"><a name="配置参数" href="#配置参数"></a>配置参数</h4>
<ol>
<li>Name:节点名字</li></ol>
<h4 id="输入"><a name="输入" href="#输入"></a>输入</h4>
<ol>
<li>msg.imagePtr:图像数据包</li></ol>
<h4 id="输出1"><a name="输出1" href="#输出1"></a>输出1</h4>
<ol>
<li>msg.payload:人脸个数</li></ol>
<h4 id="输出2"><a name="输出2" href="#输出2"></a>输出2</h4>
<ol>
<li>msg.imagePtr:图像数据包</li></ol>
<h4 id="使用方法"><a name="使用方法" href="#使用方法"></a>使用方法</h4>
<ol>
<li>将摄像头插入Edison的USB口。</li><li>使用时,向节点传入<code>msg.imagePtr</code>消息,节点开始检测人脸。</li><li><code>msg.payload</code>的值为人脸个数。</li><li>输出2,输出内容为格式化字符串,样式为<code>Camera:xxxxxxxx</code>,其中<code>xxxxxxx</code>为<code>cv:Mat</code>类型的指针,存有摄像头读取到的图像。</li></ol>
</script>