|
36 | 36 | hideCaptureButton: { value: false },
|
37 | 37 | showImage: { value: 2 },
|
38 | 38 | mirror: { value: true },
|
39 |
| - format: { value:"png" } |
| 39 | + format: { value: "png" } |
40 | 40 | },
|
41 | 41 | inputs:1,
|
42 | 42 | outputs:1,
|
|
121 | 121 | <button class="editor-button" id="node-input-size"></button>
|
122 | 122 | </div>
|
123 | 123 | <br />
|
124 |
| - <div class="form-row" style="min-width: 470px"> |
125 |
| - <label style="vertical-align: top"><i class="fa fa-cog"></i> Options</label> |
| 124 | + <div class="form-row" style="min-width:470px"> |
| 125 | + <label style="vertical-align:top"><i class="fa fa-cog"></i> Options</label> |
126 | 126 | <div style="display:inline-block; min-width:350px; width:calc(100% - 120px);">
|
127 | 127 | <div class="form-row">
|
128 |
| - <label style="width: auto" for="node-input-autoStart"> |
| 128 | + <label style="width:auto" for="node-input-autoStart"> |
129 | 129 | <input style="width:auto; margin:0" type="checkbox" id="node-input-autoStart"> Start webcam automatically
|
130 | 130 | </label>
|
131 | 131 | </div>
|
132 | 132 | <div class="form-row">
|
133 |
| - <label style="width: auto" for="node-input-showImage-enable"> |
| 133 | + <label style="width:auto" for="node-input-showImage-enable"> |
134 | 134 | <input style="width:auto; margin:0" type="checkbox" id="node-input-showImage-enable"> Show image after capture
|
135 | 135 | </label>
|
136 | 136 | <div class="node-row-ui-webcam-showImage-timeout">
|
137 | 137 | <label style="margin-bottom:0; margin-left:20px; width:auto" for="node-input-showImage-timeout">
|
138 |
| - <input style="width:auto; margin:0" type="checkbox" id="node-input-showImage-timeout"> Clear image after <input style="width:60px; margin: 0" type="text" id="node-input-showImage-time"> seconds |
| 138 | + <input style="width:auto; margin:0" type="checkbox" id="node-input-showImage-timeout"> Clear image after <input style="width:60px; margin:0" type="text" id="node-input-showImage-time"> seconds |
139 | 139 | </label>
|
140 | 140 | </div>
|
141 | 141 | </div>
|
142 | 142 | <div class="form-row">
|
143 |
| - <label style="width: auto" for="node-input-hideCaptureButton"> |
| 143 | + <label style="width:auto" for="node-input-hideCaptureButton"> |
144 | 144 | <input style="width:auto; margin:0" type="checkbox" id="node-input-hideCaptureButton"> Hide capture button
|
145 | 145 | </label>
|
146 | 146 | </div>
|
147 | 147 | <div class="form-row">
|
148 |
| - <label style="width: auto" for="node-input-countdown"> |
| 148 | + <label style="width:auto" for="node-input-countdown"> |
149 | 149 | <input style="width:auto; margin:0" type="checkbox" id="node-input-countdown"> Use 5 second countdown when triggered
|
150 | 150 | </label>
|
151 | 151 | </div>
|
152 | 152 | <div class="form-row">
|
153 |
| - <label style="width: auto" for="node-input-mirror"> |
| 153 | + <label style="width:auto" for="node-input-mirror"> |
154 | 154 | <input style="width:auto; margin:0" type="checkbox" id="node-input-mirror"> Mirror image from webcam
|
155 | 155 | </label>
|
156 | 156 | </div>
|
@@ -181,12 +181,16 @@ <h3>Inputs</h3>
|
181 | 181 | <dt>capture</dt>
|
182 | 182 | <dd>If set, this will trigger the webcam to capture an image. The webcam must
|
183 | 183 | have been activated on the dashboard first.</dd>
|
| 184 | + <dt>camera<span class="property-type">Number</span></dt> |
| 185 | + <dd>If set to a number that is the index of an available camera, the stream will switch to that camera.</dd> |
184 | 186 | </dl>
|
185 | 187 | <h3>Outputs</h3>
|
186 | 188 | <dl class="message-properties">
|
187 | 189 | <dt>payload<span class="property-type">Buffer</span></dt>
|
188 |
| - <dd>The captured image as a png or jpeg.</dd> |
| 190 | + <dd>The captured image as a png or jpeg. Most image recognition processes prefer jpeg.</dd> |
189 | 191 | </dl>
|
190 | 192 | <h3>Details</h3>
|
| 193 | + The user may set the preferred camera from a dropdown in the on-screen widget. |
| 194 | + This will be used by default for future sessions. |
191 | 195 | <p></p>
|
192 | 196 | </script>
|
0 commit comments