node-red-node-rdk-camera
Version:
搭配RDK硬件使用摄像头的Node-RED节点(Node-RED node for using camera on a RDK hardware)
48 lines (47 loc) • 2.01 kB
HTML
<script type="text/html" data-help-name="rdk-camera takephoto">
<p>RDK Camera Take Photo Node</p>
<h3>Input</h3>
<dl class="message-properties">
<dt>payload <span class="property-type">any | string ('stop'/'start')</span></dt>
</dl>
<h3>Output</h3>
<dl class="message-properties">
<dt>payload <span class="property-type">string</span></dt>
</dl>
<h3>Details</h3>
<p>This node takes input as camera trigger. </p>
<p>This node output image url with <code>msg.payload</code>.</p>
<h3>Settings:</h3>
<ul>
<li>Camera Type: MIPI(default)/USB</li>
<li>File Mode: AutoMode/CustomMode(Only save the latest image file)</li>
<li>File Name: Use with CustomMode. The file name must end with '.jpg'. </li>
<li>File Default Path: Default path is <code>~/Pictures</code>, custom path is also available.</li>
<li>File Path: Use with CustomPath. The file path must exist.</li>
<li>Resolution: Default 640x480</li>
<li>Name: Optional</li>
</ul>
</script>
<script type="text/html" data-help-name="rdk-camera imagestream">
<p>RDK Camera Image Stream Node</p>
<h3>Input</h3>
<dl class="message-properties">
<dt>payload <span class="property-type">any | string ('stop'/'start')</span></dt>
</dl>
<h3>Output</h3>
<dl class="message-properties">
<dt>payload <span class="property-type">base64</span></dt>
</dl>
<h3>Details</h3>
<p>This node takes 'stop' or 'start' as switch of camera. </p>
<p>This node outputs base64 data with <code>msg.payload</code>.</p>
<h3>Settings:</h3>
<ul>
<li>Camera Type: MIPI(default)/USB</li>
<li>Sample Rate: Default sample rate is 1/6, several opitons are distributing form 1/30 to 1.</li>
<li>Resolution: Default 640x480</li>
<li>Default Port: Default 10888, custom port is available.</li>
<li>Port: Use with CustomPort.</li>
<li>Name: Optional</li>
</ul>
</script>